d3d12: Sample mask output needs to be uint-typed
authorJesse Natalie <jenatali@microsoft.com>
Thu, 13 Jan 2022 17:44:26 +0000 (09:44 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Jan 2022 23:08:26 +0000 (23:08 +0000)
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14624>

src/gallium/drivers/d3d12/d3d12_compiler.cpp

index 5780005..05e9f32 100644 (file)
@@ -1141,7 +1141,7 @@ d3d12_create_shader(struct d3d12_context *ctx,
                          0 : VARYING_BIT_PRIMITIVE_ID;
 
    uint64_t out_mask = nir->info.stage == MESA_SHADER_FRAGMENT ?
-                          (1ull << FRAG_RESULT_STENCIL) :
+                          (1ull << FRAG_RESULT_STENCIL) | (1ull << FRAG_RESULT_SAMPLE_MASK) :
                           VARYING_BIT_PRIMITIVE_ID;
 
    d3d12_fix_io_uint_type(nir, in_mask, out_mask);