intel/brw: Delete constant_buffer_0_is_relative

This was only for old kernels on old hardware.

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27872>
This commit is contained in:
Kenneth Graunke 2024-02-28 05:06:06 -08:00 committed by Marge Bot
parent eebd24680c
commit 485b2bca17
3 changed files with 1 additions and 9 deletions

View file

@ -79,12 +79,6 @@ struct brw_compiler {
*/
bool precise_trig;
/**
* Is 3DSTATE_CONSTANT_*'s Constant Buffer 0 relative to Dynamic State
* Base Address? (If not, it's a normal GPU address.)
*/
bool constant_buffer_0_is_relative;
/**
* Whether or not the driver supports NIR shader constants. This controls
* whether nir_opt_large_constants will be run.

View file

@ -300,8 +300,7 @@ brw_nir_analyze_ubo_ranges(const struct brw_compiler *compiler,
* unfortunately can't truncate it here, because we don't know what
* the backend is planning to do with regular uniforms.
*/
const int max_ubos = (compiler->constant_buffer_0_is_relative ? 3 : 4) -
state.uses_regular_uniforms;
const int max_ubos = 4 - state.uses_regular_uniforms;
nr_entries = MIN2(nr_entries, max_ubos);
for (int i = 0; i < nr_entries; i++) {

View file

@ -2418,7 +2418,6 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
}
device->compiler->shader_debug_log = compiler_debug_log;
device->compiler->shader_perf_log = compiler_perf_log;
device->compiler->constant_buffer_0_is_relative = false;
device->compiler->supports_shader_constants = true;
device->compiler->indirect_ubos_use_sampler = device->info.ver < 12;
device->compiler->extended_bindless_surface_offset = device->uses_ex_bso;