nir/linking: Remove system_value handling from helper
All uses are passing variables of either nir_var_shader_in or nir_var_shader_out modes. Note that currently there are more than 64 system values, so the uint64_t wouldn't be enough anyway. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8585>
This commit is contained in:

committed by
Marge Bot

parent
4fdd8b09bd
commit
ecd0ae09f9
@@ -32,8 +32,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the bits in the inputs_read, outputs_written, or
|
* Returns the bits in the inputs_read, or outputs_written
|
||||||
* system_values_read bitfield corresponding to this variable.
|
* bitfield corresponding to this variable.
|
||||||
*/
|
*/
|
||||||
static uint64_t
|
static uint64_t
|
||||||
get_variable_io_mask(nir_variable *var, gl_shader_stage stage)
|
get_variable_io_mask(nir_variable *var, gl_shader_stage stage)
|
||||||
@@ -45,8 +45,7 @@ get_variable_io_mask(nir_variable *var, gl_shader_stage stage)
|
|||||||
var->data.location - VARYING_SLOT_PATCH0 : var->data.location;
|
var->data.location - VARYING_SLOT_PATCH0 : var->data.location;
|
||||||
|
|
||||||
assert(var->data.mode == nir_var_shader_in ||
|
assert(var->data.mode == nir_var_shader_in ||
|
||||||
var->data.mode == nir_var_shader_out ||
|
var->data.mode == nir_var_shader_out);
|
||||||
var->data.mode == nir_var_system_value);
|
|
||||||
assert(var->data.location >= 0);
|
assert(var->data.location >= 0);
|
||||||
|
|
||||||
const struct glsl_type *type = var->type;
|
const struct glsl_type *type = var->type;
|
||||||
|
Reference in New Issue
Block a user