mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 10:00:30 +01:00
radeonsi/nir: don't add bindless samplers/images to declared bitmasks
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
f33d9036b9
commit
222d862cd3
1 changed files with 6 additions and 6 deletions
|
|
@ -657,22 +657,22 @@ void si_nir_scan_shader(const struct nir_shader *nir,
|
|||
* eliminated struct dereferences.
|
||||
*/
|
||||
if (base_type == GLSL_TYPE_SAMPLER) {
|
||||
info->samplers_declared |=
|
||||
u_bit_consecutive(variable->data.binding, aoa_size);
|
||||
|
||||
if (variable->data.bindless) {
|
||||
info->const_buffers_declared |= 1;
|
||||
info->const_file_max[0] +=
|
||||
glsl_count_attribute_slots(type, false);
|
||||
} else {
|
||||
info->samplers_declared |=
|
||||
u_bit_consecutive(variable->data.binding, aoa_size);
|
||||
}
|
||||
} else if (base_type == GLSL_TYPE_IMAGE) {
|
||||
info->images_declared |=
|
||||
u_bit_consecutive(variable->data.binding, aoa_size);
|
||||
|
||||
if (variable->data.bindless) {
|
||||
info->const_buffers_declared |= 1;
|
||||
info->const_file_max[0] +=
|
||||
glsl_count_attribute_slots(type, false);
|
||||
} else {
|
||||
info->images_declared |=
|
||||
u_bit_consecutive(variable->data.binding, aoa_size);
|
||||
}
|
||||
} else if (base_type != GLSL_TYPE_ATOMIC_UINT) {
|
||||
if (strncmp(variable->name, "state.", 6) == 0 ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue