mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
nir: Stop assuming shader_info::textures_used is 32-bit
This isn't a hot path. We don't need to be manually using the INSIDE_WORD version which will assert if we ever get a bigger texture index. Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15988>
This commit is contained in:
parent
625b352f14
commit
28f534350c
1 changed files with 6 additions and 3 deletions
|
|
@ -240,12 +240,15 @@ record_textures_used(struct shader_info *info,
|
|||
const unsigned size =
|
||||
glsl_type_is_array(var->type) ? glsl_get_aoa_size(var->type) : 1;
|
||||
|
||||
BITSET_SET_RANGE_INSIDE_WORD(info->textures_used, var->data.binding, var->data.binding + (MAX2(size, 1) - 1));
|
||||
BITSET_SET_RANGE(info->textures_used, var->data.binding,
|
||||
var->data.binding + (MAX2(size, 1) - 1));
|
||||
|
||||
if (op == nir_texop_txf ||
|
||||
op == nir_texop_txf_ms ||
|
||||
op == nir_texop_txf_ms_mcs_intel)
|
||||
BITSET_SET_RANGE_INSIDE_WORD(info->textures_used_by_txf, var->data.binding, var->data.binding + (MAX2(size, 1) - 1));
|
||||
op == nir_texop_txf_ms_mcs_intel) {
|
||||
BITSET_SET_RANGE(info->textures_used_by_txf, var->data.binding,
|
||||
var->data.binding + (MAX2(size, 1) - 1));
|
||||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue