From c01d5be76a6a6b0bdc8a7f9f01caf5c6aaf8ca5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 17 Feb 2016 21:56:50 +0100 Subject: [PATCH] shader: add a few handled texture type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a regression fix from c59eddf16e83. Signed-off-by: Marc-André Lureau --- 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: