mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 18:50:10 +01:00
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:
parent
eebd24680c
commit
485b2bca17
3 changed files with 1 additions and 9 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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++) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue