iris: use CALLOC_STRUCT instead of calloc for readability

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: José Roberto de Souza <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32771>
This commit is contained in:
Rohan Garg
2024-07-01 15:30:50 +02:00
committed by Marge Bot
parent e38150f2fa
commit abd137d079
+1 -1
View File
@@ -545,7 +545,7 @@ static struct iris_resource *
iris_alloc_resource(struct pipe_screen *pscreen,
const struct pipe_resource *templ)
{
struct iris_resource *res = calloc(1, sizeof(struct iris_resource));
struct iris_resource *res = CALLOC_STRUCT(iris_resource);
if (!res)
return NULL;