[Mesa-dev] [PATCH v2] gallivm, llvmpipe: Handle MSAA textures in emit_fetch_texels.

Darius Goad alegend45 at gmail.com
Sat Jul 5 09:55:52 PDT 2014


This support is preliminary due to the fact that MSAA is not
actually implemented. More complete support would most likely
involve a rework of the Mesa architecture to support it.

However, this patch does fix the piglit test:
spec/!OpenGL 3.2/glsl-resource-not-bound 2DMS
---
 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