mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 23:09:05 +02:00
nir/lower_tex: fix typo with sample_dim
Numeric 2 is actually GLSL_SAMPLER_DIM_3D, which I don't think is what was intended. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
1a8424ceba
commit
bff90aedf1
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ sample_plane(nir_builder *b, nir_tex_instr *tex, int plane)
|
|||
plane_tex->src[1].src = nir_src_for_ssa(nir_imm_int(b, plane));
|
||||
plane_tex->src[1].src_type = nir_tex_src_plane;
|
||||
plane_tex->op = nir_texop_tex;
|
||||
plane_tex->sampler_dim = 2;
|
||||
plane_tex->sampler_dim = GLSL_SAMPLER_DIM_2D;
|
||||
plane_tex->dest_type = nir_type_float;
|
||||
plane_tex->coord_components = 2;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue