summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-02-17 21:56:50 +0100
committerDave Airlie <airlied@redhat.com>2016-02-18 09:59:17 +1000
commitc01d5be76a6a6b0bdc8a7f9f01caf5c6aaf8ca5b (patch)
treed630be59fbc941ab97593cd15cec108709482aa1
parent1d2a61788f8c16d17f58d498bc56f949cb3625a0 (diff)
shader: add a few handled texture type
This is a regression fix from c59eddf16e83. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r--src/vrend_shader.c7
1 files changed, 7 insertions, 0 deletions
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: