mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 06:00:35 +01:00
mesa: store bindless samplers as PROGRAM_UNIFORM
Old-style samplers (ie. bound samplers) are stored as PROGRAM_SAMPLER, while bindless ones are PROGRAM_UNIFORM. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
156bcbaca6
commit
4fe2a6ba7a
1 changed files with 1 additions and 1 deletions
|
|
@ -2452,7 +2452,7 @@ add_uniform_to_shader::visit_field(const glsl_type *type, const char *name,
|
|||
return;
|
||||
|
||||
gl_register_file file;
|
||||
if (type->without_array()->is_sampler()) {
|
||||
if (type->without_array()->is_sampler() && !var->data.bindless) {
|
||||
file = PROGRAM_SAMPLER;
|
||||
} else {
|
||||
file = PROGRAM_UNIFORM;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue