On Fri, Dec 28, 2012 at 09:45:48AM +0200, Arto Merilainen wrote: > On 12/28/2012 08:47 AM, Mark Zhang wrote: > >>+int tegra_fence_is_valid(const struct tegra_fence *fence) > >>+{ > >>+ int valid = fence ? 1 : 0; > >>+ valid = valid && fence->id != (uint32_t) -1; > >>+ valid = valid && fence->id < 32; > > > >Hardcode here. Assume always has 32 syncpts. > >Change to a micro wrapped with tegra version ifdef will be better. > > > > You are correct. I will fix this. I disagree. We shouldn't be hiding this kind of detail behind an #ifdef. Instead it should be detected at runtime. Otherwise you'll need to build different versions of libdrm for every generation of Tegra. That may be fine for NVIDIA provided BSPs, but distributions would have a very hard time dealing with that. What we want is software that works unmodified on as many generations of Tegra as possible. Thierry
Attachment:
pgpl3OGpgjC8k.pgp
Description: PGP signature
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel