radv: fix lowering VS inputs when offset >= stride on GFX6-7

This was supposed to be >=.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31209>
(cherry picked from commit ad3e6bb06a)
This commit is contained in:
Samuel Pitoiset 2024-09-17 16:25:23 +02:00 committed by Eric Engestrom
parent 0a9bd16602
commit b9fd84e942
3 changed files with 2 additions and 19 deletions

View file

@ -4,7 +4,7 @@
"description": "radv: fix lowering VS inputs when offset >= stride on GFX6-7",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1,23 +1,6 @@
# New CTS failures in 1.3.7.0
dEQP-VK.api.version_check.unavailable_entry_points,Fail
dEQP-VK.pipeline.monolithic.input_attribute_offset.vec2.offset_4.overlapping.no_memory_offset.static,Fail
dEQP-VK.pipeline.monolithic.input_attribute_offset.vec2.offset_4.overlapping.with_memory_offset.static,Fail
dEQP-VK.pipeline.monolithic.input_attribute_offset.vec2.offset_4.packed.no_memory_offset.static,Fail
dEQP-VK.pipeline.monolithic.input_attribute_offset.vec2.offset_4.packed.with_memory_offset.static,Fail
dEQP-VK.pipeline.monolithic.input_attribute_offset.vec4.offset_12.packed.no_memory_offset.static,Fail
dEQP-VK.pipeline.monolithic.input_attribute_offset.vec4.offset_12.packed.with_memory_offset.static,Fail
dEQP-VK.pipeline.monolithic.input_attribute_offset.vec4.offset_4.packed.no_memory_offset.static,Fail
dEQP-VK.pipeline.monolithic.input_attribute_offset.vec4.offset_4.packed.with_memory_offset.static,Fail
dEQP-VK.pipeline.pipeline_library.input_attribute_offset.vec2.offset_4.overlapping.no_memory_offset.static,Fail
dEQP-VK.pipeline.pipeline_library.input_attribute_offset.vec2.offset_4.overlapping.with_memory_offset.static,Fail
dEQP-VK.pipeline.pipeline_library.input_attribute_offset.vec2.offset_4.packed.no_memory_offset.static,Fail
dEQP-VK.pipeline.pipeline_library.input_attribute_offset.vec2.offset_4.packed.with_memory_offset.static,Fail
dEQP-VK.pipeline.pipeline_library.input_attribute_offset.vec4.offset_12.packed.no_memory_offset.static,Fail
dEQP-VK.pipeline.pipeline_library.input_attribute_offset.vec4.offset_12.packed.with_memory_offset.static,Fail
dEQP-VK.pipeline.pipeline_library.input_attribute_offset.vec4.offset_4.packed.no_memory_offset.static,Fail
dEQP-VK.pipeline.pipeline_library.input_attribute_offset.vec4.offset_4.packed.with_memory_offset.static,Fail
# New CTS failures in 1.3.8.0
dEQP-VK.api.get_device_proc_addr.non_enabled,Fail

View file

@ -281,7 +281,7 @@ lower_load_vs_input(nir_builder *b, nir_intrinsic_instr *intrin, lower_vs_inputs
/* Add excess constant offset to the index. */
unsigned const_off = attrib_offset + count_format_bytes(f, 0, start);
if (attrib_stride && const_off > attrib_stride) {
if (attrib_stride && const_off >= attrib_stride) {
index = nir_iadd_imm(b, base_index, const_off / attrib_stride);
const_off %= attrib_stride;
}