zink: do not open-code CALLOC_STRUCT
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8099>
This commit is contained in:
committed by
Marge Bot
parent
5342dbe96d
commit
cd7d8eade2
@@ -222,7 +222,7 @@ zink_create_sampler_state(struct pipe_context *pctx,
|
||||
sci.anisotropyEnable = VK_TRUE;
|
||||
}
|
||||
|
||||
struct zink_sampler_state *sampler = CALLOC(1, sizeof(struct zink_sampler_state));
|
||||
struct zink_sampler_state *sampler = CALLOC_STRUCT(zink_sampler_state);
|
||||
if (!sampler)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user