mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
panfrost: Do no use designated initializer for union
../src/panfrost/lib/tests/test-earlyzs.cpp: In function 'void test(pan_earlyzs, pan_earlyzs, uint32_t)':
../src/panfrost/lib/tests/test-earlyzs.cpp:59:4: error: 'pan_shader_info::<unnamed union>' has no non-static data member named 'can_discard'
59 | };
| ^
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18024>
This commit is contained in:
parent
41af9bc0a5
commit
1b38ca7844
1 changed files with 7 additions and 10 deletions
|
|
@ -47,16 +47,13 @@
|
|||
static void
|
||||
test(enum pan_earlyzs expected_update, enum pan_earlyzs expected_kill, uint32_t flags)
|
||||
{
|
||||
struct pan_shader_info info = {
|
||||
.fs = {
|
||||
.can_discard = !!(flags & DISCARD),
|
||||
.writes_depth = !!(flags & WRITES_Z),
|
||||
.writes_stencil = !!(flags & WRITES_S),
|
||||
.writes_coverage = !!(flags & WRITES_COV),
|
||||
.early_fragment_tests = !!(flags & API_EARLY),
|
||||
},
|
||||
.writes_global = !!(flags & SIDEFX),
|
||||
};
|
||||
struct pan_shader_info info = {};
|
||||
info.fs.can_discard = !!(flags & DISCARD);
|
||||
info.fs.writes_depth = !!(flags & WRITES_Z);
|
||||
info.fs.writes_stencil = !!(flags & WRITES_S);
|
||||
info.fs.writes_coverage = !!(flags & WRITES_COV);
|
||||
info.fs.early_fragment_tests = !!(flags & API_EARLY);
|
||||
info.writes_global = !!(flags & SIDEFX);
|
||||
|
||||
struct pan_earlyzs_state result =
|
||||
pan_earlyzs_get(pan_earlyzs_analyze(&info),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue