aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2016-09-01 11:45:22 -0700
committerIan Romanick <[email protected]>2017-01-20 15:41:23 -0800
commitd6fcede60fba83efa39a989764db9361a28e8e4c (patch)
tree2a3bba23ed4c065d1f1459a076d06d6c9b91f770 /src/mesa/drivers/dri
parentc95380c4044237d73fb537511667c3c8f658fcee (diff)
i965: Return Q and UQ types for int64 and uint64
It seems like maybe this should return a different type based on Gen. Q and UQ only exist on Gen8+, but, based on the old comment, I believe previous Gens can generate 64-bit moves. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_nir.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index a5912a02c92..3ead8802927 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -721,11 +721,9 @@ brw_type_for_nir_type(nir_alu_type type)
case nir_type_float64:
return BRW_REGISTER_TYPE_DF;
case nir_type_int64:
+ return BRW_REGISTER_TYPE_Q;
case nir_type_uint64:
- /* TODO we should only see these in moves, so for now it's ok, but when
- * we add actual 64-bit integer support we should fix this.
- */
- return BRW_REGISTER_TYPE_DF;
+ return BRW_REGISTER_TYPE_UQ;
default:
unreachable("unknown type");
}