From 8b6edee6790f5e196a815f7a149792279564871f Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Thu, 19 May 2016 21:26:51 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/brw_fs_builder.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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)); } /** -- 2.30.2