mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 12:14:10 +08:00
intel/elk: Use REG_CLASS_COUNT
Fixes: d44462c08d
("intel/elk: Fork Gfx8- compiler by copying existing code")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30314>
This commit is contained in:
parent
5e24c21625
commit
a3714b55f4
@ -47,6 +47,8 @@ struct shader_info;
|
||||
struct nir_shader_compiler_options;
|
||||
typedef struct nir_shader nir_shader;
|
||||
|
||||
#define REG_CLASS_COUNT 20
|
||||
|
||||
struct elk_compiler {
|
||||
const struct intel_device_info *devinfo;
|
||||
|
||||
@ -74,7 +76,7 @@ struct elk_compiler {
|
||||
* Array of the ra classes for the unaligned contiguous register
|
||||
* block sizes used, indexed by register size.
|
||||
*/
|
||||
struct ra_class *classes[16];
|
||||
struct ra_class *classes[REG_CLASS_COUNT];
|
||||
|
||||
/**
|
||||
* ra class for the aligned barycentrics we use for PLN, which doesn't
|
||||
|
@ -34,8 +34,6 @@
|
||||
|
||||
using namespace elk;
|
||||
|
||||
#define REG_CLASS_COUNT 20
|
||||
|
||||
static void
|
||||
assign_reg(const struct intel_device_info *devinfo,
|
||||
unsigned *reg_hw_locations, elk_fs_reg *reg)
|
||||
|
Loading…
Reference in New Issue
Block a user