[Mesa-dev] [PATCH 08/14] i965: fix brw_glsl_base_type_for_nir_type() for sized types

Samuel Iglesias Gonsálvez siglesias at igalia.com
Mon Mar 7 08:46:05 UTC 2016


From: Connor Abbott <connor.w.abbott at intel.com>

This should only see sized types, but we can't do that until we have fixed NIR
and the driver to make this happen. A later commit will address this.
---
 src/mesa/drivers/dri/i965/brw_nir.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index c9472af..ea3450e 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -648,12 +648,18 @@ brw_glsl_base_type_for_nir_type(nir_alu_type type)
 {
    switch (type) {
    case nir_type_float:
+   case nir_type_float32:
       return GLSL_TYPE_FLOAT;
 
+   case nir_type_float64:
+      return GLSL_TYPE_DOUBLE;
+
    case nir_type_int:
+   case nir_type_int32:
       return GLSL_TYPE_INT;
 
    case nir_type_uint:
+   case nir_type_uint32:
       return GLSL_TYPE_UINT;
 
    default:
-- 
2.7.0



More information about the mesa-dev mailing list