ntv: emit ViewIndex with flat for fragment stage

cc: mesa-stable

(cherry picked from commit 999aaac12e)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
This commit is contained in:
Mike Blumenkrantz 2026-01-29 08:19:34 -05:00 committed by Dylan Baker
parent d15ff626f3
commit e6867fc009
2 changed files with 2 additions and 1 deletions

View file

@ -164,7 +164,7 @@
"description": "ntv: emit ViewIndex with flat for fragment stage",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -2654,6 +2654,7 @@ create_builtin_var(struct ntv_context *ctx, SpvId var_type,
switch (builtin) {
case SpvBuiltInSampleId:
case SpvBuiltInSubgroupLocalInvocationId:
case SpvBuiltInViewIndex:
spirv_builder_emit_decoration(&ctx->builder, var, SpvDecorationFlat);
break;
default: