st/nine: use helper ureg_DECL_sampler everywhere
authorAxel Davy <davyaxel0@gmail.com>
Sun, 20 Jan 2019 10:25:47 +0000 (11:25 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Tue, 30 Apr 2019 17:18:51 +0000 (19:18 +0200)
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/nine_shader.c

index 1ec03c67924614a203c3f27e3b6bbd8980aed9f3..fe2dc4a707f7c4754439acb1f849e3ff69665bc3 100644 (file)
@@ -993,7 +993,7 @@ tx_src_param(struct shader_translator *tx, const struct sm1_src_param *param)
     case D3DSPR_SAMPLER:
         assert(param->mod == NINED3DSPSM_NONE);
         assert(param->swizzle == NINED3DSP_NOSWIZZLE);
-        src = ureg_src_register(TGSI_FILE_SAMPLER, param->idx);
+        src = ureg_DECL_sampler(ureg, param->idx);
         break;
     case D3DSPR_CONST:
         if (param->rel || !tx_lconstf(tx, &src, param->idx)) {