intel/compiler: Don't create vec4 reg-set for gen8+
After60e1d0f028
, we know that vec4 will never be used for gen >= 8. Ref:60e1d0f028
("intel/compiler: Remove INTEL_SCALAR_... env variables") Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17437>
This commit is contained in:
@@ -110,6 +110,7 @@ brw_compiler_create(void *mem_ctx, const struct intel_device_info *devinfo)
|
|||||||
brw_init_isa_info(&compiler->isa, devinfo);
|
brw_init_isa_info(&compiler->isa, devinfo);
|
||||||
|
|
||||||
brw_fs_alloc_reg_sets(compiler);
|
brw_fs_alloc_reg_sets(compiler);
|
||||||
|
if (devinfo->ver < 8)
|
||||||
brw_vec4_alloc_reg_set(compiler);
|
brw_vec4_alloc_reg_set(compiler);
|
||||||
|
|
||||||
compiler->precise_trig = env_var_as_boolean("INTEL_PRECISE_TRIG", false);
|
compiler->precise_trig = env_var_as_boolean("INTEL_PRECISE_TRIG", false);
|
||||||
|
@@ -94,6 +94,8 @@ brw_vec4_alloc_reg_set(struct brw_compiler *compiler)
|
|||||||
int base_reg_count =
|
int base_reg_count =
|
||||||
compiler->devinfo->ver >= 7 ? GFX7_MRF_HACK_START : BRW_MAX_GRF;
|
compiler->devinfo->ver >= 7 ? GFX7_MRF_HACK_START : BRW_MAX_GRF;
|
||||||
|
|
||||||
|
assert(compiler->devinfo->ver < 8);
|
||||||
|
|
||||||
/* After running split_virtual_grfs(), almost all VGRFs will be of size 1.
|
/* After running split_virtual_grfs(), almost all VGRFs will be of size 1.
|
||||||
* SEND-from-GRF sources cannot be split, so we also need classes for each
|
* SEND-from-GRF sources cannot be split, so we also need classes for each
|
||||||
* potential message length.
|
* potential message length.
|
||||||
@@ -163,6 +165,8 @@ vec4_visitor::reg_allocate()
|
|||||||
if (0)
|
if (0)
|
||||||
return reg_allocate_trivial();
|
return reg_allocate_trivial();
|
||||||
|
|
||||||
|
assert(devinfo->ver < 8);
|
||||||
|
|
||||||
const vec4_live_variables &live = live_analysis.require();
|
const vec4_live_variables &live = live_analysis.require();
|
||||||
int node_count = alloc.count;
|
int node_count = alloc.count;
|
||||||
int first_payload_node = node_count;
|
int first_payload_node = node_count;
|
||||||
|
Reference in New Issue
Block a user