hk: enable constant promotion

reduce the perf gap with GL :)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31908>
This commit is contained in:
Alyssa Rosenzweig
2024-10-28 16:26:59 -04:00
parent c8870da833
commit 0f278bf3c5

View File

@@ -873,6 +873,7 @@ hk_compile_nir(struct hk_device *dev, const VkAllocationCallbacks *pAllocator,
.libagx = dev->dev.libagx,
.no_stop = nir->info.stage == MESA_SHADER_FRAGMENT,
.has_scratch = !nir->info.internal,
.promote_constants = true,
};
/* For now, sample shading is always dynamic. Indicate that. */