kk: enable logicOp

Reviewed-by: Aitor Camacho <aitor@lunarg.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38067>
This commit is contained in:
Arcady Goldmints-Orlov 2025-10-22 11:57:25 -04:00 committed by Arcady Goldmints-Orlov
parent 938390c075
commit 8c9e9555e8
2 changed files with 2 additions and 1 deletions

View file

@ -155,6 +155,7 @@ kk_get_device_features(
*/
.fragmentStoresAndAtomics = false,
.imageCubeArray = true,
.logicOp = true,
.shaderInt16 = true,
.shaderInt64 = true,
.shaderResourceMinLod = true,

View file

@ -328,7 +328,7 @@ kk_lower_fs_blend(nir_shader *nir,
nir_lower_blend_options opts = {
.scalar_blend_const = false,
.logicop_enable = state->cb->logic_op_enable,
.logicop_func = state->cb->logic_op,
.logicop_func = vk_logic_op_to_pipe(state->cb->logic_op),
};
static_assert(ARRAY_SIZE(opts.format) == 8, "max RTs out of sync");