From: Dave Airlie Date: Mon, 5 Jun 2017 03:19:18 +0000 (+1000) Subject: r600: fix incorrect and missing bit field in register headers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06f4251925af65d7f8d7e2f6041ab3a0a9f4c0dd;p=mesa.git r600: fix incorrect and missing bit field in register headers. The compression field was incorrect, and we were missing the depth before shader field. --- diff --git a/src/gallium/drivers/r600/evergreend.h b/src/gallium/drivers/r600/evergreend.h index d51181855ca..09ff3207a14 100644 --- a/src/gallium/drivers/r600/evergreend.h +++ b/src/gallium/drivers/r600/evergreend.h @@ -390,9 +390,9 @@ #define S_028C70_FAST_CLEAR(x) (((unsigned)(x) & 0x1) << 17) #define G_028C70_FAST_CLEAR(x) (((x) >> 17) & 0x1) #define C_028C70_FAST_CLEAR 0xFFFDFFFF -#define S_028C70_COMPRESSION(x) (((unsigned)(x) & 0x3) << 18) -#define G_028C70_COMPRESSION(x) (((x) >> 18) & 0x3) -#define C_028C70_COMPRESSION 0xFFF3FFFF +#define S_028C70_COMPRESSION(x) (((unsigned)(x) & 0x1) << 18) +#define G_028C70_COMPRESSION(x) (((x) >> 18) & 0x1) +#define C_028C70_COMPRESSION 0xFFFBFFFF #define S_028C70_BLEND_CLAMP(x) (((unsigned)(x) & 0x1) << 19) #define G_028C70_BLEND_CLAMP(x) (((x) >> 19) & 0x1) #define C_028C70_BLEND_CLAMP 0xFFF7FFFF @@ -851,6 +851,7 @@ #define V_02880C_EXPORT_DB_FOUR16 0x01 #define V_02880C_EXPORT_DB_TWO 0x02 #define S_02880C_ALPHA_TO_MASK_DISABLE(x) (((unsigned)(x) & 0x1) << 12) +#define S_02880C_DEPTH_BEFORE_SHADER(x) (((unsigned)(x) & 0x1) << 15) #define S_02880C_CONSERVATIVE_Z_EXPORT(x) (((unsigned)(x) & 0x03) << 16) #define G_02880C_CONSERVATIVE_Z_EXPORT(x) (((x) >> 16) & 0x03) #define C_02880C_CONSERVATIVE_Z_EXPORT 0xFFFCFFFF