turnip: Make RelaxedPrecision-decorated ALU ops 16-bit.

Improves gfxbench vk-5-normal performance 5.5%.

Fixes: #6346
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16465>
This commit is contained in:
Emma Anholt 2022-05-02 16:22:37 -07:00 committed by Marge Bot
parent 260559050a
commit a28d2e87d3
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,9 @@ tu_spirv_to_nir(struct tu_device *dev,
/* Accessed via stg/ldg (not used with Vulkan?) */
.global_addr_format = nir_address_format_64bit_global,
/* Use 16-bit math for RelaxedPrecision ALU ops */
.mediump_16bit_alu = true,
/* ViewID is a sysval in geometry stages and an input in the FS */
.view_index_is_input = stage == MESA_SHADER_FRAGMENT,
.caps = {