[Mesa-dev] [PATCH 01/20] tgsi: fix the location of sample index

Marek Olšák maraeo at gmail.com
Wed Aug 7 17:20:41 PDT 2013


The sample index is always in W.
---
 src/gallium/auxiliary/tgsi/tgsi_util.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.c b/src/gallium/auxiliary/tgsi/tgsi_util.c
index 98c1e6e..fed5f76 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_util.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_util.c
@@ -418,9 +418,11 @@ tgsi_util_get_texture_coord_dim(int tgsi_tex, int *shadow_or_sample)
       case TGSI_TEXTURE_SHADOW1D_ARRAY:
       case TGSI_TEXTURE_SHADOW2D_ARRAY:
       case TGSI_TEXTURE_SHADOWCUBE_ARRAY:
+         *shadow_or_sample = dim;
+         break;
       case TGSI_TEXTURE_2D_MSAA:
       case TGSI_TEXTURE_2D_ARRAY_MSAA:
-         *shadow_or_sample = dim;
+         *shadow_or_sample = 3;
          break;
       default:
          /* no shadow nor sample */
-- 
1.8.1.2



More information about the mesa-dev mailing list