From 1ddeb43537f2f1d702372b65aa8bf83b83f10ba8 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sun, 20 Jan 2019 11:25:47 +0100 Subject: [PATCH] st/nine: use helper ureg_DECL_sampler everywhere Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 1ec03c67924..fe2dc4a707f 100644 --- a/src/gallium/state_trackers/nine/nine_shader.c +++ b/src/gallium/state_trackers/nine/nine_shader.c @@ -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)) { -- 2.30.2