mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
nv10: use the gallium alloc/free wrappers.
This commit is contained in:
parent
511693d00c
commit
a62a738f3d
1 changed files with 4 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ nv10_blend_state_create(struct pipe_context *pipe,
|
|||
{
|
||||
struct nv10_blend_state *cb;
|
||||
|
||||
cb = malloc(sizeof(struct nv10_blend_state));
|
||||
cb = MALLOC(sizeof(struct nv10_blend_state));
|
||||
|
||||
cb->b_enable = cso->blend_enable ? 1 : 0;
|
||||
cb->b_srcfunc = ((nvgl_blend_func(cso->alpha_src_factor)<<16) |
|
||||
|
|
@ -88,7 +88,7 @@ nv10_sampler_state_create(struct pipe_context *pipe,
|
|||
struct nv10_sampler_state *ps;
|
||||
uint32_t filter = 0;
|
||||
|
||||
ps = malloc(sizeof(struct nv10_sampler_state));
|
||||
ps = MALLOC(sizeof(struct nv10_sampler_state));
|
||||
|
||||
ps->wrap = ((wrap_mode(cso->wrap_s) << NV10TCL_TX_FORMAT_WRAP_S_SHIFT) |
|
||||
(wrap_mode(cso->wrap_t) << NV10TCL_TX_FORMAT_WRAP_T_SHIFT));
|
||||
|
|
@ -249,7 +249,7 @@ nv10_rasterizer_state_create(struct pipe_context *pipe,
|
|||
* multisample
|
||||
* offset_units / offset_scale
|
||||
*/
|
||||
rs = malloc(sizeof(struct nv10_rasterizer_state));
|
||||
rs = MALLOC(sizeof(struct nv10_rasterizer_state));
|
||||
|
||||
rs->templ = cso;
|
||||
|
||||
|
|
@ -335,7 +335,7 @@ nv10_depth_stencil_alpha_state_create(struct pipe_context *pipe,
|
|||
{
|
||||
struct nv10_depth_stencil_alpha_state *hw;
|
||||
|
||||
hw = malloc(sizeof(struct nv10_depth_stencil_alpha_state));
|
||||
hw = MALLOC(sizeof(struct nv10_depth_stencil_alpha_state));
|
||||
|
||||
hw->depth.func = nvgl_comparison_op(cso->depth.func);
|
||||
hw->depth.write_enable = cso->depth.writemask ? 1 : 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue