[Mesa-dev] [PATCH 90/95] i965/vec4: implement force_vstride0 for FIXED_GRF

Iago Toral Quiroga itoral at igalia.com
Tue Jul 19 10:41:27 UTC 2016


From: Samuel Iglesias Gonsálvez <siglesias at igalia.com>

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
---
 src/mesa/drivers/dri/i965/brw_vec4.cpp | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index f92abe3..1fc4a6c 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -1950,8 +1950,19 @@ vec4_visitor::convert_to_hw_regs()
             break;
          }
 
-         case ARF:
          case FIXED_GRF:
+            if (type_sz(src.type) == 8) {
+               reg = src.as_brw_reg();
+               reg.width = BRW_WIDTH_2;
+               if (src.force_vstride0)
+                  reg.vstride = BRW_VERTICAL_STRIDE_0;
+               else
+                  reg.vstride = BRW_VERTICAL_STRIDE_2;
+
+               break;
+            }
+            /* If type_sz(src.type) != 8, fallthrough */
+         case ARF:
          case IMM:
             continue;
 
-- 
2.7.4



More information about the mesa-dev mailing list