mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
nir: Constant values are per-column not per-component
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Karol Herbst <kherbst@redhat.com>
This commit is contained in:
parent
9a129510f5
commit
0b7e5bdbd4
1 changed files with 2 additions and 1 deletions
|
|
@ -59,6 +59,7 @@ extern "C" {
|
|||
#define NIR_FALSE 0u
|
||||
#define NIR_TRUE (~0u)
|
||||
#define NIR_MAX_VEC_COMPONENTS 4
|
||||
#define NIR_MAX_MATRIX_COLUMNS 4
|
||||
typedef uint8_t nir_component_mask_t;
|
||||
|
||||
/** Defines a cast function
|
||||
|
|
@ -141,7 +142,7 @@ typedef struct nir_constant {
|
|||
* by the type associated with the \c nir_variable. Constants may be
|
||||
* scalars, vectors, or matrices.
|
||||
*/
|
||||
nir_const_value values[NIR_MAX_VEC_COMPONENTS];
|
||||
nir_const_value values[NIR_MAX_MATRIX_COLUMNS];
|
||||
|
||||
/* we could get this from the var->type but makes clone *much* easier to
|
||||
* not have to care about the type.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue