mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 14:28:05 +02:00
zink: emit SpvCapabilitySampleRateShading with SampleId
required by spec
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25914>
(cherry picked from commit 7035b5a8e8)
This commit is contained in:
parent
8a7498e13f
commit
da8fcbaef5
2 changed files with 2 additions and 1 deletions
|
|
@ -884,7 +884,7 @@
|
|||
"description": "zink: emit SpvCapabilitySampleRateShading with SampleId",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -3295,6 +3295,7 @@ emit_intrinsic(struct ntv_context *ctx, nir_intrinsic_instr *intr)
|
|||
break;
|
||||
|
||||
case nir_intrinsic_load_sample_id:
|
||||
spirv_builder_emit_cap(&ctx->builder, SpvCapabilitySampleRateShading);
|
||||
emit_load_uint_input(ctx, intr, &ctx->sample_id_var, "gl_SampleId", SpvBuiltInSampleId);
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue