st/mesa: convert shadow array samplers to TGSI
authorMarek Olšák <maraeo@gmail.com>
Mon, 5 Sep 2011 01:25:34 +0000 (03:25 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 10 Sep 2011 06:53:29 +0000 (08:53 +0200)
src/mesa/state_tracker/st_mesa_to_tgsi.c

index f4263c64c3dadf2ed900567bb3579bd23238fa8c..b4111b00d68522df209ce7092353ea95772eea25 100644 (file)
@@ -276,6 +276,8 @@ translate_texture_target( GLuint textarget,
       case TEXTURE_1D_INDEX:   return TGSI_TEXTURE_SHADOW1D;
       case TEXTURE_2D_INDEX:   return TGSI_TEXTURE_SHADOW2D;
       case TEXTURE_RECT_INDEX: return TGSI_TEXTURE_SHADOWRECT;
+      case TEXTURE_1D_ARRAY_INDEX: return TGSI_TEXTURE_SHADOW1D_ARRAY;
+      case TEXTURE_2D_ARRAY_INDEX: return TGSI_TEXTURE_SHADOW2D_ARRAY;
       default: break;
       }
    }