zink: simplify flagging legacy shadow samplers
the binding is generated from the driver_location anyway Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28955>
This commit is contained in:
committed by
Marge Bot
parent
95e4a2b37e
commit
3849f367cc
@@ -3498,10 +3498,8 @@ prune_io(nir_shader *nir)
|
||||
static void
|
||||
flag_shadow_tex(nir_variable *var, struct zink_shader *zs)
|
||||
{
|
||||
/* unconvert from zink_binding() */
|
||||
uint32_t sampler_id = var->data.binding - (PIPE_MAX_SAMPLERS * MESA_SHADER_FRAGMENT);
|
||||
assert(sampler_id < 32); //bitfield size for tracking
|
||||
zs->fs.legacy_shadow_mask |= BITFIELD_BIT(sampler_id);
|
||||
assert(var->data.driver_location < 32); //bitfield size for tracking
|
||||
zs->fs.legacy_shadow_mask |= BITFIELD_BIT(var->data.driver_location);
|
||||
}
|
||||
|
||||
static nir_def *
|
||||
|
||||
Reference in New Issue
Block a user