microsoft/compiler: Bump signature limits for 32 rows of 4 components

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26156>
This commit is contained in:
Jesse Natalie 2023-11-07 16:27:37 -08:00 committed by Marge Bot
parent ee48b12a8f
commit adc7caa3ec
3 changed files with 5 additions and 5 deletions

View file

@ -39,7 +39,7 @@ extern "C" {
#include "util/list.h"
#define DXIL_SHADER_MAX_IO_ROWS 80
#define DXIL_SHADER_MAX_IO_ROWS 128
enum dxil_shader_kind {
DXIL_PIXEL_SHADER = 0,

View file

@ -425,7 +425,7 @@ append_semantic_index_to_table(struct dxil_psv_sem_index_table *table, uint32_t
i += j - 1;
}
uint32_t retval = table->size;
assert(table->size + num_rows <= 80);
assert(table->size + num_rows <= ARRAY_SIZE(table->data));
for (unsigned i = 0; i < num_rows; ++i)
table->data[table->size++] = index + i;
return retval;
@ -591,7 +591,7 @@ get_input_signature_group(struct dxil_module *mod,
semantic.start_row + semantic.rows);
++num_inputs;
assert(num_inputs < VARYING_SLOT_MAX);
assert(num_inputs < VARYING_SLOT_MAX * 4);
}
return num_inputs;
}
@ -849,7 +849,7 @@ get_signature_metadata(struct dxil_module *mod,
if (num_elements == 0)
return NULL;
const struct dxil_mdnode *nodes[VARYING_SLOT_MAX];
const struct dxil_mdnode *nodes[VARYING_SLOT_MAX * 4];
for (unsigned i = 0; i < num_elements; ++i) {
nodes[i] = fill_SV_param_nodes(mod, i, &recs[i], &psvs[i], is_input);
}

View file

@ -63,7 +63,7 @@ struct dxil_signature_record {
};
struct dxil_psv_sem_index_table {
uint32_t data[80];
uint32_t data[128];
uint32_t size;
};