mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
radeonsi: make the vertex shader key smaller
We only support 16 vertex attribs, not 32. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
90611297fa
commit
91f1a79f78
1 changed files with 2 additions and 1 deletions
|
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
#include <llvm-c/Core.h> /* LLVMModuleRef */
|
#include <llvm-c/Core.h> /* LLVMModuleRef */
|
||||||
#include "tgsi/tgsi_scan.h"
|
#include "tgsi/tgsi_scan.h"
|
||||||
|
#include "si_state.h"
|
||||||
|
|
||||||
#define SI_SGPR_CONST 0
|
#define SI_SGPR_CONST 0
|
||||||
#define SI_SGPR_SAMPLER 2
|
#define SI_SGPR_SAMPLER 2
|
||||||
|
|
@ -140,7 +141,7 @@ union si_shader_key {
|
||||||
unsigned alpha_to_one:1;
|
unsigned alpha_to_one:1;
|
||||||
} ps;
|
} ps;
|
||||||
struct {
|
struct {
|
||||||
unsigned instance_divisors[PIPE_MAX_ATTRIBS];
|
unsigned instance_divisors[SI_NUM_VERTEX_BUFFERS];
|
||||||
/* The mask of "get_unique_index" bits, needed for ES,
|
/* The mask of "get_unique_index" bits, needed for ES,
|
||||||
* it describes how the ES->GS ring buffer is laid out. */
|
* it describes how the ES->GS ring buffer is laid out. */
|
||||||
uint64_t gs_used_inputs;
|
uint64_t gs_used_inputs;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue