mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
asahi: resize key
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29179>
This commit is contained in:
parent
a38f7c9151
commit
71692a5d0b
3 changed files with 3 additions and 3 deletions
|
|
@ -54,7 +54,7 @@ struct agx_vs_prolog_key {
|
|||
struct agx_velem_key attribs[AGX_MAX_VBUFS];
|
||||
|
||||
/* Bit mask of attribute components to load */
|
||||
BITSET_DECLARE(component_mask, VERT_ATTRIB_MAX * 4);
|
||||
BITSET_DECLARE(component_mask, AGX_MAX_ATTRIBS * 4);
|
||||
|
||||
/* Whether running as a hardware vertex shader (versus compute) */
|
||||
bool hw;
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ agx_nir_vs_prolog(nir_builder *b, const void *key_)
|
|||
unsigned i = 0;
|
||||
nir_def *vec = NULL;
|
||||
unsigned vec_idx = ~0;
|
||||
BITSET_FOREACH_SET(i, key->component_mask, VERT_ATTRIB_MAX * 4) {
|
||||
BITSET_FOREACH_SET(i, key->component_mask, AGX_MAX_ATTRIBS * 4) {
|
||||
unsigned a = i / 4;
|
||||
unsigned c = i % 4;
|
||||
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ struct agx_compiled_shader {
|
|||
/* For a vertex shader, the mask of vertex attributes read. Used to key the
|
||||
* prolog so the prolog doesn't write components not actually read.
|
||||
*/
|
||||
BITSET_DECLARE(attrib_components_read, VERT_ATTRIB_MAX * 4);
|
||||
BITSET_DECLARE(attrib_components_read, AGX_MAX_ATTRIBS * 4);
|
||||
|
||||
struct agx_fs_epilog_link_info epilog_key;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue