llvmpipe: check buffers in llvmpipe_is_resource_referenced.
authorRoland Scheidegger <sroland@vmware.com>
Thu, 28 Feb 2013 00:25:24 +0000 (01:25 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 28 Feb 2013 02:39:54 +0000 (03:39 +0100)
commitc8eb2d0e829d0d2aea6a982620da0d3cfb5982e2
tree8ed27e8c5f72175689c56730bf5d80dd9eaa859e
parent686f6c69bd36c537573f6e8095aaf24ec0ae4047
llvmpipe: check buffers in llvmpipe_is_resource_referenced.

Now that buffers can be used as textures or render targets
make sure they aren't skipped.

Fix suggested by Jose Fonseca.

v2: added a couple of assertions so we can actually guarantee
we check the resources and don't skip them. Also added some comments
that this is actually a lie due to the way the opengl buffer api works.
src/gallium/drivers/llvmpipe/lp_state_sampler.c
src/gallium/drivers/llvmpipe/lp_surface.c
src/gallium/drivers/llvmpipe/lp_texture.c