[Mesa-dev] [PATCH 1/1] gallivm, llvmpipe: Handle MSAA textures in emit_fetch_texels in a preliminary fashion to prevent a crash in a Piglit test.

Darius Goad alegend45 at gmail.com
Fri Jul 4 10:59:22 PDT 2014


---
 src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 3d7df3e..4bf9242 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -2329,9 +2329,11 @@ emit_fetch_texels( struct lp_build_tgsi_soa_context *bld,
       dims = 1;
       break;
    case TGSI_TEXTURE_2D:
+   case TGSI_TEXTURE_2D_MSAA:
    case TGSI_TEXTURE_RECT:
       dims = 2;
       break;
+   case TGSI_TEXTURE_2D_ARRAY_MSAA:
    case TGSI_TEXTURE_2D_ARRAY:
       layer_coord = 2;
       dims = 2;
-- 
1.9.1



More information about the mesa-dev mailing list