diff options
Diffstat (limited to 'src/gallium/state_trackers/nine/pixelshader9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/pixelshader9.c | 10 |
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); } |