brw: Delete use_bindless_sampler_offset flag

No drivers use this.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39839>
This commit is contained in:
Kenneth Graunke 2026-02-11 14:18:36 -08:00 committed by Marge Bot
parent 4bdef9824a
commit 1df2158f50
3 changed files with 1 additions and 16 deletions

View file

@ -73,14 +73,6 @@ struct brw_compiler {
*/
bool precise_trig;
/**
* Gfx11+ has a bit in the dword 3 of the sampler message header that
* indicates whether the sampler handle is relative to the dynamic state
* base address (0) or the bindless sampler base address (1). The driver
* can select this.
*/
bool use_bindless_sampler_offset;
/**
* Should DPAS instructions be lowered?
*

View file

@ -746,7 +746,6 @@ static void
lower_sampler_logical_send(const brw_builder &bld, brw_tex_inst *tex)
{
const intel_device_info *devinfo = bld.shader->devinfo;
const brw_compiler *compiler = bld.shader->compiler;
const enum brw_sampler_opcode op = tex->sampler_opcode;
const bool surface_bindless = tex->surface_bindless;
@ -849,12 +848,7 @@ lower_sampler_logical_send(const brw_builder &bld, brw_tex_inst *tex)
* address space but means we can do something more efficient in the
* shader.
*/
if (compiler->use_bindless_sampler_offset) {
assert(devinfo->ver >= 11);
ubld1.OR(component(header, 3), sampler, brw_imm_ud(1));
} else {
ubld1.MOV(component(header, 3), sampler);
}
ubld1.MOV(component(header, 3), sampler);
} else if (is_high_sampler(devinfo, sampler)) {
brw_reg sampler_state_ptr =
retype(brw_vec1_grf(0, 3), BRW_TYPE_UD);

View file

@ -2821,7 +2821,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->use_bindless_sampler_offset = false;
device->compiler->spilling_rate =
driQueryOptioni(&instance->dri_options, "shader_spilling_rate");