From 76ee9edcb4f5be8699cfb9a6c4aa231c4e7d4183 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 26 Apr 2018 09:24:32 -0700 Subject: broadcom/vc5: Add support for centroid varyings. It would be nice to share the flags packet emit logic with flat shade flags, but I couldn't come up with a good way while still using our pack macros. We need to refactor this to shader record setup at compile time, anyway. Fixes ext_framebuffer_multisample-interpolation * centroid-* --- src/broadcom/compiler/v3d_compiler.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/broadcom/compiler/v3d_compiler.h') diff --git a/src/broadcom/compiler/v3d_compiler.h b/src/broadcom/compiler/v3d_compiler.h index e89ea7be217..4dba23c067e 100644 --- a/src/broadcom/compiler/v3d_compiler.h +++ b/src/broadcom/compiler/v3d_compiler.h @@ -478,6 +478,10 @@ struct v3d_compile { */ uint32_t flat_shade_flags[BITSET_WORDS(V3D_MAX_FS_INPUTS)]; + uint32_t centroid_flags[BITSET_WORDS(V3D_MAX_FS_INPUTS)]; + + bool uses_centroid_and_center_w; + struct v3d_ubo_range *ubo_ranges; bool *ubo_range_used; uint32_t ubo_ranges_array_size; @@ -657,8 +661,11 @@ struct v3d_fs_prog_data { */ uint32_t flat_shade_flags[((V3D_MAX_FS_INPUTS - 1) / 24) + 1]; + uint32_t centroid_flags[((V3D_MAX_FS_INPUTS - 1) / 24) + 1]; + bool writes_z; bool discard; + bool uses_centroid_and_center_w; }; /* Special nir_load_input intrinsic index for loading the current TLB -- cgit v1.2.1