From: Topi Pohjolainen Date: Wed, 3 Sep 2014 17:10:30 +0000 (+0300) Subject: i965: Determine size of double precision float register X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=520b3b2fd1ddf0d8bd3c012229fd11712c0606bd;p=mesa.git i965: Determine size of double precision float register This is used to determine how many registers an instruction reads and writes as well as for offseting register region into a desired component. v2 (Connor): rebase on master Signed-off-by: Topi Pohjolainen Signed-off-by: Tapani P\344lli Signed-off-by: Abdiel Janulgue Reviewed-by: Kenneth Graunke Reviewed-by: Jordan Justen Reviewed-by: Francisco Jerez --- diff --git a/src/mesa/drivers/dri/i965/brw_reg.h b/src/mesa/drivers/dri/i965/brw_reg.h index 4f9b2526e45..b84c709d3f1 100644 --- a/src/mesa/drivers/dri/i965/brw_reg.h +++ b/src/mesa/drivers/dri/i965/brw_reg.h @@ -274,6 +274,7 @@ type_sz(unsigned type) switch(type) { case BRW_REGISTER_TYPE_UQ: case BRW_REGISTER_TYPE_Q: + case BRW_REGISTER_TYPE_DF: return 8; case BRW_REGISTER_TYPE_UD: case BRW_REGISTER_TYPE_D: