Mesa (master): softpipe: remove shadow_ref assert.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Mar 21 23:32:36 UTC 2019


Module: Mesa
Branch: master
Commit: aae5ba72aba79d855d8ab9ca399bad331e217353
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aae5ba72aba79d855d8ab9ca399bad331e217353

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Mar 21 14:27:14 2019 +1000

softpipe: remove shadow_ref assert.

I don't think this really buys us anything and TG4 with cubemap arrays
falls over because sampler == 2, but otherwise works fine.

Fixes:
./bin/textureGather fs shadow r  CubeArray repeat

on softpipe with ARB_gpu_shader5 enabled.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/auxiliary/tgsi/tgsi_exec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 5f55de0390c..a03dfe6aebc 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -2274,7 +2274,6 @@ exec_tex(struct tgsi_exec_machine *mach,
          FETCH(&r[last], 0, TGSI_CHAN_W);
       }
       else {
-         assert(shadow_ref != 4);
          FETCH(&r[last], 1, TGSI_CHAN_X);
       }
 




More information about the mesa-commit mailing list