mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
Convert register ranges for >= r6xx from enums to defines.
Avoids lots of "comparison between 'enum <anonymous>' and 'enum <anonymous>'" warnings with newer versions of gcc. See https://bugs.freedesktop.org/show_bug.cgi?id=38238 . Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
95991fcce4
commit
64f237a4cf
@@ -42,22 +42,21 @@ enum {
|
||||
|
||||
|
||||
/* SET_*_REG offsets + ends */
|
||||
enum {
|
||||
SET_CONFIG_REG_offset = 0x00008000,
|
||||
SET_CONFIG_REG_end = 0x0000ac00,
|
||||
SET_CONTEXT_REG_offset = 0x00028000,
|
||||
SET_CONTEXT_REG_end = 0x00029000,
|
||||
SET_RESOURCE_offset = 0x00030000,
|
||||
SET_RESOURCE_end = 0x00038000,
|
||||
SET_SAMPLER_offset = 0x0003c000,
|
||||
SET_SAMPLER_end = 0x0003c600,
|
||||
SET_CTL_CONST_offset = 0x0003cff0,
|
||||
SET_CTL_CONST_end = 0x0003ff0c,
|
||||
SET_LOOP_CONST_offset = 0x0003a200,
|
||||
SET_LOOP_CONST_end = 0x0003a500,
|
||||
SET_BOOL_CONST_offset = 0x0003a500,
|
||||
SET_BOOL_CONST_end = 0x0003a518,
|
||||
};
|
||||
#define SET_CONFIG_REG_offset 0x00008000
|
||||
#define SET_CONFIG_REG_end 0x0000ac00
|
||||
#define SET_CONTEXT_REG_offset 0x00028000
|
||||
#define SET_CONTEXT_REG_end 0x00029000
|
||||
#define SET_RESOURCE_offset 0x00030000
|
||||
#define SET_RESOURCE_end 0x00038000
|
||||
#define SET_SAMPLER_offset 0x0003c000
|
||||
#define SET_SAMPLER_end 0x0003c600
|
||||
#define SET_CTL_CONST_offset 0x0003cff0
|
||||
#define SET_CTL_CONST_end 0x0003ff0c
|
||||
#define SET_LOOP_CONST_offset 0x0003a200
|
||||
#define SET_LOOP_CONST_end 0x0003a500
|
||||
#define SET_BOOL_CONST_offset 0x0003a500
|
||||
#define SET_BOOL_CONST_end 0x0003a518
|
||||
|
||||
|
||||
/* Packet3 commands */
|
||||
enum {
|
||||
|
||||
@@ -42,22 +42,21 @@ enum {
|
||||
|
||||
|
||||
/* SET_*_REG offsets + ends */
|
||||
enum {
|
||||
SET_CONFIG_REG_offset = 0x00008000,
|
||||
SET_CONFIG_REG_end = 0x0000ac00,
|
||||
SET_CONTEXT_REG_offset = 0x00028000,
|
||||
SET_CONTEXT_REG_end = 0x00029000,
|
||||
SET_RESOURCE_offset = 0x00030000,
|
||||
SET_RESOURCE_end = 0x00038000,
|
||||
SET_SAMPLER_offset = 0x0003c000,
|
||||
SET_SAMPLER_end = 0x0003c600,
|
||||
SET_CTL_CONST_offset = 0x0003cff0,
|
||||
SET_CTL_CONST_end = 0x0003ff0c,
|
||||
SET_LOOP_CONST_offset = 0x0003a200,
|
||||
SET_LOOP_CONST_end = 0x0003a500,
|
||||
SET_BOOL_CONST_offset = 0x0003a500,
|
||||
SET_BOOL_CONST_end = 0x0003a518,
|
||||
};
|
||||
#define SET_CONFIG_REG_offset 0x00008000
|
||||
#define SET_CONFIG_REG_end 0x0000ac00
|
||||
#define SET_CONTEXT_REG_offset 0x00028000
|
||||
#define SET_CONTEXT_REG_end 0x00029000
|
||||
#define SET_RESOURCE_offset 0x00030000
|
||||
#define SET_RESOURCE_end 0x00038000
|
||||
#define SET_SAMPLER_offset 0x0003c000
|
||||
#define SET_SAMPLER_end 0x0003c600
|
||||
#define SET_CTL_CONST_offset 0x0003cff0
|
||||
#define SET_CTL_CONST_end 0x0003ff0c
|
||||
#define SET_LOOP_CONST_offset 0x0003a200
|
||||
#define SET_LOOP_CONST_end 0x0003a500
|
||||
#define SET_BOOL_CONST_offset 0x0003a500
|
||||
#define SET_BOOL_CONST_end 0x0003a518
|
||||
|
||||
|
||||
/* Packet3 commands */
|
||||
enum {
|
||||
|
||||
@@ -35,24 +35,23 @@
|
||||
|
||||
|
||||
/* SET_*_REG offsets + ends */
|
||||
enum {
|
||||
SET_CONFIG_REG_offset = 0x00008000,
|
||||
SET_CONFIG_REG_end = 0x0000ac00,
|
||||
SET_CONTEXT_REG_offset = 0x00028000,
|
||||
SET_CONTEXT_REG_end = 0x00029000,
|
||||
SET_ALU_CONST_offset = 0x00030000,
|
||||
SET_ALU_CONST_end = 0x00032000,
|
||||
SET_RESOURCE_offset = 0x00038000,
|
||||
SET_RESOURCE_end = 0x0003c000,
|
||||
SET_SAMPLER_offset = 0x0003c000,
|
||||
SET_SAMPLER_end = 0x0003cff0,
|
||||
SET_CTL_CONST_offset = 0x0003cff0,
|
||||
SET_CTL_CONST_end = 0x0003e200,
|
||||
SET_LOOP_CONST_offset = 0x0003e200,
|
||||
SET_LOOP_CONST_end = 0x0003e380,
|
||||
SET_BOOL_CONST_offset = 0x0003e380,
|
||||
SET_BOOL_CONST_end = 0x0003e38c,
|
||||
};
|
||||
#define SET_CONFIG_REG_offset 0x00008000
|
||||
#define SET_CONFIG_REG_end 0x0000ac00
|
||||
#define SET_CONTEXT_REG_offset 0x00028000
|
||||
#define SET_CONTEXT_REG_end 0x00029000
|
||||
#define SET_ALU_CONST_offset 0x00030000
|
||||
#define SET_ALU_CONST_end 0x00032000
|
||||
#define SET_RESOURCE_offset 0x00038000
|
||||
#define SET_RESOURCE_end 0x0003c000
|
||||
#define SET_SAMPLER_offset 0x0003c000
|
||||
#define SET_SAMPLER_end 0x0003cff0
|
||||
#define SET_CTL_CONST_offset 0x0003cff0
|
||||
#define SET_CTL_CONST_end 0x0003e200
|
||||
#define SET_LOOP_CONST_offset 0x0003e200
|
||||
#define SET_LOOP_CONST_end 0x0003e380
|
||||
#define SET_BOOL_CONST_offset 0x0003e380
|
||||
#define SET_BOOL_CONST_end 0x0003e38c
|
||||
|
||||
|
||||
/* packet3 IT_SURFACE_BASE_UPDATE bits */
|
||||
enum {
|
||||
|
||||
Reference in New Issue
Block a user