panfrost: mali_attr_meta.unknown1 is zero on Bifrost
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 1 May 2020 06:29:21 +0000 (08:29 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 1 May 2020 14:52:32 +0000 (16:52 +0200)
For unknown1 reasons :)

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4832>

src/gallium/drivers/panfrost/pan_assemble.c

index 25d8ec4f7aebd1df5b636a7ad2120fc78da7533f..efd3bf35df7a8e07d8c526a10fed9257564d9fcd 100644 (file)
@@ -266,7 +266,7 @@ panfrost_shader_compile(struct panfrost_context *ctx,
                 struct mali_attr_meta v = {
                         .format = p_varying_type[i],
                         .swizzle = default_vec4_swizzle,
-                        .unknown1 = 0x2,
+                        .unknown1 = dev->quirks & IS_BIFROST ? 0x0 : 0x2,
                 };
 
                 /* Check for special cases, otherwise assume general varying */