svga: add missing switch cases for shadow textures

This doesn't seem to make any difference in testing, but it fixes a
failed assertion when dumping sm3 shaders.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
Brian Paul
2018-08-23 20:48:04 -06:00
parent fb7e462c97
commit 18e9b4791b
2 changed files with 5 additions and 0 deletions
@@ -525,6 +525,8 @@ svga_tgsi_sampler_type(const struct svga_shader_emitter *emit, int idx)
case TGSI_TEXTURE_2D:
case TGSI_TEXTURE_RECT:
return SVGA3DSAMP_2D;
case TGSI_TEXTURE_SHADOW2D:
return SVGA3DSAMP_2D_SHADOW;
case TGSI_TEXTURE_3D:
return SVGA3DSAMP_VOLUME;
case TGSI_TEXTURE_CUBE:
@@ -287,6 +287,9 @@ dump_sampleinfo(struct sh_sampleinfo sampleinfo)
case SVGA3DSAMP_2D:
_debug_printf( "_2d" );
break;
case SVGA3DSAMP_2D_SHADOW:
_debug_printf( "_2dshadow" );
break;
case SVGA3DSAMP_CUBE:
_debug_printf( "_cube" );
break;