Mesa (master): i965: Move BAD_FILE from the beginning of enum register_file.

Matt Turner mattst88 at kemper.freedesktop.org
Fri Nov 13 19:58:07 UTC 2015


Module: Mesa
Branch: master
Commit: 5a23b31c75556fa0fe9ca53db481bbec18c2baba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a23b31c75556fa0fe9ca53db481bbec18c2baba

Author: Matt Turner <mattst88 at gmail.com>
Date:   Thu Oct 29 22:04:22 2015 -0700

i965: Move BAD_FILE from the beginning of enum register_file.

I'm going to begin using brw_reg's file field in backend_reg and its
derivatives, and in order to keep the hardware value for ARF as 0, we
have to do something different.

Reviewed-by: Emil Velikov <emil.velikov at collabora.co.uk>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_shader.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h
index 67d623c..5632378 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.h
+++ b/src/mesa/drivers/dri/i965/brw_shader.h
@@ -39,13 +39,13 @@
 #define MAX_VGRF_SIZE 16
 
 enum PACKED register_file {
-   BAD_FILE,
    GRF,
    MRF,
    IMM,
    HW_REG, /* a struct brw_reg */
    ATTR,
    UNIFORM, /* prog_data->params[reg] */
+   BAD_FILE,
 };
 
 #ifdef __cplusplus




More information about the mesa-commit mailing list