From: Francisco Jerez Date: Fri, 20 May 2016 04:26:51 +0000 (-0700) Subject: i965/fs: Emit fixed-width null register regardless of the dispatch width. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b6edee6790f5e196a815f7a149792279564871f;p=mesa.git i965/fs: Emit fixed-width null register regardless of the dispatch width. brw_null_vec() cannot handle widths over 16 but it doesn't really matter what width we specify for null registers because destination regions have no width field at the hardware level. Reviewed-by: Jason Ekstrand --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_builder.h b/src/mesa/drivers/dri/i965/brw_fs_builder.h index c1d13a2b14a..f38be6cdf4c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_builder.h +++ b/src/mesa/drivers/dri/i965/brw_fs_builder.h @@ -202,15 +202,13 @@ namespace brw { dst_reg null_reg_f() const { - return dst_reg(retype(brw_null_vec(dispatch_width()), - BRW_REGISTER_TYPE_F)); + return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_F)); } dst_reg null_reg_df() const { - return dst_reg(retype(brw_null_vec(dispatch_width()), - BRW_REGISTER_TYPE_DF)); + return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_DF)); } /** @@ -219,8 +217,7 @@ namespace brw { dst_reg null_reg_d() const { - return dst_reg(retype(brw_null_vec(dispatch_width()), - BRW_REGISTER_TYPE_D)); + return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_D)); } /** @@ -229,8 +226,7 @@ namespace brw { dst_reg null_reg_ud() const { - return dst_reg(retype(brw_null_vec(dispatch_width()), - BRW_REGISTER_TYPE_UD)); + return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_UD)); } /**