mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 07:28:05 +02:00
Currently, negative array texture indices get saturated to 0 which, while technically in-bounds, isn't what we want for Vulkan with image robustness or robustness2. Vulkan requires that a negative index on a texelFetch() count as out-of-bounds but a negative index on any other texture operation gets clamped to 0. (See the spec section entitled "(u,v,w,a) to (i,j,k,l,n) Transformation And Array Layer Selection"). Instead of using CVT for TXF, we now take U32 MAX with 0xffff. Because it's unsigned, this ensures that negative array indices clamp to 0xffff and will be considered out-of-bounds by the hardware (there are a maximum of 2048 array indices in an image descriptor). For everything other than TXF, we keep using an F32->U16 conversion but add a saturate. This ensures that negative array indices clamp to 0 as per the Vulkan spec. Very large indices will clamp to 0xffff which the hardware will clamp to the maximum array index. This fixes 324 tests in the dEQP-VK.robustness.* group, all those for 1D and 2D array textures Acked-by: M Henning <drawoc@darkrefraction.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24593> |
||
|---|---|---|
| .. | ||
| lib | ||
| meson.build | ||
| nv50_ir.cpp | ||
| nv50_ir.h | ||
| nv50_ir_bb.cpp | ||
| nv50_ir_build_util.cpp | ||
| nv50_ir_build_util.h | ||
| nv50_ir_driver.h | ||
| nv50_ir_emit_gk110.cpp | ||
| nv50_ir_emit_gm107.cpp | ||
| nv50_ir_emit_gv100.cpp | ||
| nv50_ir_emit_gv100.h | ||
| nv50_ir_emit_nv50.cpp | ||
| nv50_ir_emit_nvc0.cpp | ||
| nv50_ir_from_common.cpp | ||
| nv50_ir_from_common.h | ||
| nv50_ir_from_nir.cpp | ||
| nv50_ir_graph.cpp | ||
| nv50_ir_graph.h | ||
| nv50_ir_inlines.h | ||
| nv50_ir_lowering_gm107.cpp | ||
| nv50_ir_lowering_gm107.h | ||
| nv50_ir_lowering_gv100.cpp | ||
| nv50_ir_lowering_gv100.h | ||
| nv50_ir_lowering_helper.cpp | ||
| nv50_ir_lowering_helper.h | ||
| nv50_ir_lowering_nv50.cpp | ||
| nv50_ir_lowering_nvc0.cpp | ||
| nv50_ir_lowering_nvc0.h | ||
| nv50_ir_peephole.cpp | ||
| nv50_ir_print.cpp | ||
| nv50_ir_ra.cpp | ||
| nv50_ir_sched_gm107.h | ||
| nv50_ir_serialize.cpp | ||
| nv50_ir_ssa.cpp | ||
| nv50_ir_target.cpp | ||
| nv50_ir_target.h | ||
| nv50_ir_target_gm107.cpp | ||
| nv50_ir_target_gm107.h | ||
| nv50_ir_target_gv100.cpp | ||
| nv50_ir_target_gv100.h | ||
| nv50_ir_target_nv50.cpp | ||
| nv50_ir_target_nv50.h | ||
| nv50_ir_target_nvc0.cpp | ||
| nv50_ir_target_nvc0.h | ||
| nv50_ir_util.cpp | ||
| nv50_ir_util.h | ||