nouveau/nir: Implement load_global_constant
[mesa.git] / src / gallium / drivers / svga / svga_tgsi_decl_sm30.c
index 766e439188324bcc6ede8fd8531a426496203e2a..5e0f52bd8992ae27f855ab69949fe97f68941ede 100644 (file)
@@ -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:
@@ -576,7 +578,7 @@ svga_translate_decl_sm30(struct svga_shader_emitter *emit,
    unsigned last = decl->Range.Last;
    unsigned idx;
 
-   for(idx = first; idx <= last; idx++) {
+   for (idx = first; idx <= last; idx++) {
       boolean ok = TRUE;
 
       switch (decl->Declaration.File) {