mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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 <jason@jlekstrand.net>
This commit is contained in:
parent
298320280f
commit
8b6edee679
1 changed files with 4 additions and 8 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue