From: Axel Davy Date: Sun, 20 Jan 2019 10:25:47 +0000 (+0100) Subject: st/nine: use helper ureg_DECL_sampler everywhere X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ddeb43537f2f1d702372b65aa8bf83b83f10ba8;p=mesa.git st/nine: use helper ureg_DECL_sampler everywhere Signed-off-by: Axel Davy --- 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)) {