mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
st/mesa: Use sized types for nir_tex_instr::dest_type
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7989>
This commit is contained in:
parent
b2da598ff9
commit
ff0b7e0da9
2 changed files with 5 additions and 5 deletions
|
|
@ -167,7 +167,7 @@ make_drawpix_z_stencil_program_nir(struct st_context *st,
|
|||
"gl_FragDepth");
|
||||
out->data.location = FRAG_RESULT_DEPTH;
|
||||
nir_ssa_def *depth = sample_via_nir(&b, texcoord, "depth", 0,
|
||||
GLSL_TYPE_FLOAT, nir_type_float);
|
||||
GLSL_TYPE_FLOAT, nir_type_float32);
|
||||
nir_store_var(&b, out, depth, 0x1);
|
||||
|
||||
/* Also copy color */
|
||||
|
|
@ -189,7 +189,7 @@ make_drawpix_z_stencil_program_nir(struct st_context *st,
|
|||
"gl_FragStencilRefARB");
|
||||
out->data.location = FRAG_RESULT_STENCIL;
|
||||
nir_ssa_def *stencil = sample_via_nir(&b, texcoord, "stencil", 1,
|
||||
GLSL_TYPE_UINT, nir_type_uint);
|
||||
GLSL_TYPE_UINT, nir_type_uint32);
|
||||
nir_store_var(&b, out, stencil, 0x1);
|
||||
}
|
||||
|
||||
|
|
@ -213,9 +213,9 @@ make_drawpix_zs_to_color_program_nir(struct st_context *st,
|
|||
|
||||
/* Sample depth and stencil */
|
||||
nir_ssa_def *depth = sample_via_nir(&b, texcoord, "depth", 0,
|
||||
GLSL_TYPE_FLOAT, nir_type_float);
|
||||
GLSL_TYPE_FLOAT, nir_type_float32);
|
||||
nir_ssa_def *stencil = sample_via_nir(&b, texcoord, "stencil", 1,
|
||||
GLSL_TYPE_UINT, nir_type_uint);
|
||||
GLSL_TYPE_UINT, nir_type_uint32);
|
||||
|
||||
/* Create the variable to store the output color */
|
||||
nir_variable *color_out =
|
||||
|
|
|
|||
|
|
@ -507,7 +507,7 @@ create_fs(struct st_context *st, bool download,
|
|||
tex->sampler_dim = glsl_get_sampler_dim(tex_var->type);
|
||||
tex->coord_components =
|
||||
glsl_get_sampler_coordinate_components(tex_var->type);
|
||||
tex->dest_type = nir_type_float;
|
||||
tex->dest_type = nir_type_float32;
|
||||
tex->src[0].src_type = nir_tex_src_texture_deref;
|
||||
tex->src[0].src = nir_src_for_ssa(&tex_deref->dest.ssa);
|
||||
tex->src[1].src_type = nir_tex_src_sampler_deref;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue