summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/pixelshader9.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2014-12-07 00:14:19 +0100
committerEmil Velikov <[email protected]>2015-01-22 22:16:23 +0000
commit4b7a9cfddb1b8b47aeb2b466f66973d962555542 (patch)
treef511bed9aafdd7f64a1756beec85a598bf39c030 /src/gallium/state_trackers/nine/pixelshader9.c
parent9690bf33d7af835eb36d9e4c5928ac8483ffeeaa (diff)
st/nine: Remove unused code for ps
Since constant indirect adressing is not allowed for ps, we can remove our code to handle that. Reviewed-by: Ilia Mirkin <[email protected]> Signed-off-by: Axel Davy <[email protected]> Cc: "10.4" <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/pixelshader9.c')
-rw-r--r--src/gallium/state_trackers/nine/pixelshader9.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/nine/pixelshader9.c b/src/gallium/state_trackers/nine/pixelshader9.c
index ac204ff5785..dcd234670db 100644
--- a/src/gallium/state_trackers/nine/pixelshader9.c
+++ b/src/gallium/state_trackers/nine/pixelshader9.c
@@ -72,9 +72,10 @@ NinePixelShader9_ctor( struct NinePixelShader9 *This,
This->sampler_mask = info.sampler_mask;
This->rt_mask = info.rt_mask;
This->const_used_size = info.const_used_size;
- if (info.const_used_size == ~0)
- This->const_used_size = NINE_CONSTBUF_SIZE(device->max_ps_const_f);
- This->lconstf = info.lconstf;
+ /* no constant relative addressing for ps */
+ assert(info.const_used_size != ~0);
+ assert(info.lconstf.data == NULL);
+ assert(info.lconstf.ranges == NULL);
return D3D_OK;
}
@@ -100,9 +101,6 @@ NinePixelShader9_dtor( struct NinePixelShader9 *This )
FREE((void *)This->byte_code.tokens); /* const_cast */
- FREE(This->lconstf.data);
- FREE(This->lconstf.ranges);
-
NineUnknown_dtor(&This->base);
}