zink: simplify zink_program_has_descriptors()
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11407>
This commit is contained in:
committed by
Marge Bot
parent
f6108c2d64
commit
1672056ee8
@@ -220,7 +220,7 @@ zink_get_compute_pipeline(struct zink_screen *screen,
|
||||
static inline bool
|
||||
zink_program_has_descriptors(const struct zink_program *pg)
|
||||
{
|
||||
return pg->dsl[0] || pg->dsl[1] || pg->dsl[2] || pg->dsl[3];
|
||||
return pg->num_dsl > 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user