[virglrenderer-devel] [PATCH virglrenderer] shader: add a few handled texture type

marcandre.lureau at redhat.com marcandre.lureau at redhat.com
Wed Feb 17 20:56:50 UTC 2016


From: Marc-André Lureau <marcandre.lureau at redhat.com>

This is a regression fix from c59eddf16e83.

Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
 src/vrend_shader.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/vrend_shader.c b/src/vrend_shader.c
index 0389f3f..5a16223 100644
--- a/src/vrend_shader.c
+++ b/src/vrend_shader.c
@@ -953,6 +953,13 @@ static int translate_tex(struct dump_ctx *ctx,
    ctx->samplers[sreg_index].tgsi_sampler_type = inst->Texture.Texture;
 
    switch (inst->Texture.Texture) {
+   case TGSI_TEXTURE_1D:
+   case TGSI_TEXTURE_2D:
+   case TGSI_TEXTURE_3D:
+   case TGSI_TEXTURE_CUBE:
+   case TGSI_TEXTURE_1D_ARRAY:
+   case TGSI_TEXTURE_2D_ARRAY:
+      break;
    case TGSI_TEXTURE_SHADOWCUBE_ARRAY:
       is_shad = true;
    case TGSI_TEXTURE_CUBE_ARRAY:
-- 
2.5.0



More information about the virglrenderer-devel mailing list