r600g: only set depth bit for hw accessible depth buffers.
authorDave Airlie <airlied@redhat.com>
Thu, 3 Feb 2011 03:19:30 +0000 (13:19 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 3 Feb 2011 04:18:01 +0000 (14:18 +1000)
commit5730d565498cb8b4608fb7ed526172bc4bd84cb9
treec3ab789309024ef70a0ccaebba69b2be84b95d35
parentb13b7b86b2e1165b24a2df20cb67f9f3baa17b13
r600g: only set depth bit for hw accessible depth buffers.

If we get a sw accessible buffer like the S8 texture we end up
doing depth tracking on it when there is no need since we won't
ever bind it to the hardware. This leads to a sw fallback in the
transfer destruction which leads to and endless recusion loop
of fail in transfer destroy.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_texture.c