mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
st/pbo_compute: make compute download conditional in shader slightly more readable
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16728>
This commit is contained in:
parent
2e27144bed
commit
d05f81668b
1 changed files with 1 additions and 1 deletions
|
|
@ -624,7 +624,7 @@ create_conversion_shader(struct st_context *st, enum pipe_texture_target target,
|
|||
|
||||
nir_ssa_def *coord = nir_channels(&b, start, (1<<coord_components)-1);
|
||||
nir_ssa_def *max = nir_iadd(&b, sd.offset, sd.range);
|
||||
nir_push_if(&b, nir_ball(&b, nir_ilt(&b, coord, nir_channels(&b, max, (1<<coord_components)-1))));
|
||||
nir_push_if(&b, nir_ball(&b, nir_ilt(&b, coord, nir_trim_vector(&b, max, coord_components))));
|
||||
nir_tex_instr *txf = nir_tex_instr_create(b.shader, 3);
|
||||
txf->is_array = glsl_sampler_type_is_array(sampler->type);
|
||||
txf->op = nir_texop_txf;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue