projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
st/nine: Fix present_buffers allocation
[mesa.git]
/
src
/
gallium
/
state_trackers
/
nine
/
pixelshader9.c
diff --git
a/src/gallium/state_trackers/nine/pixelshader9.c
b/src/gallium/state_trackers/nine/pixelshader9.c
index d567bcb4a0bdc2030aa628db11358b74078c5256..3f176a312bf586ed183e74294704694c7a5248ee 100644
(file)
--- a/
src/gallium/state_trackers/nine/pixelshader9.c
+++ b/
src/gallium/state_trackers/nine/pixelshader9.c
@@
-72,9
+72,9
@@
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;
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.lconstf.data == NULL
);
+
assert(info.lconstf.ranges == NULL)
;
return D3D_OK;
}
return D3D_OK;
}
@@
-98,11
+98,7
@@
NinePixelShader9_dtor( struct NinePixelShader9 *This )
}
nine_shader_variants_free(&This->variant);
}
nine_shader_variants_free(&This->variant);
- if (This->byte_code.tokens)
- FREE((void *)This->byte_code.tokens); /* const_cast */
-
- FREE(This->lconstf.data);
- FREE(This->lconstf.ranges);
+ FREE((void *)This->byte_code.tokens); /* const_cast */
NineUnknown_dtor(&This->base);
}
NineUnknown_dtor(&This->base);
}