From e6866593d5154f5e21604bc0f8e974e0b7edcb43 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:11:54 -0600 Subject: [PATCH] nil: Rename rt to czt in the format info struct It's used for both depth/stencil and color so rt isn't quite the name we want. Also, add a comment. Part-of: --- src/nouveau/nil/nil_format.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/nouveau/nil/nil_format.c b/src/nouveau/nil/nil_format.c index 3cb2a6cada0..c8b9c0c226b 100644 --- a/src/nouveau/nil/nil_format.c +++ b/src/nouveau/nil/nil_format.c @@ -5,7 +5,8 @@ #include "clb097tex.h" struct nil_format_info { - uint32_t rt; + /* Color of depth/stencil target format */ + uint32_t czt; struct nil_tic_format tic; }; @@ -28,7 +29,7 @@ struct nil_format_info { #define SF_D(sz) NVB097_TEXHEAD_BL_COMPONENTS_SIZES_##sz #define SF(c, pf, sf, r, g, b, a, t0, t1, t2, t3, sz, u) \ [PIPE_FORMAT_##pf] = { \ - .rt = sf, \ + .czt = sf, \ .tic = { \ SF_##c(sz), \ NV9097_TEXHEAD0_R_DATA_TYPE_NUM_##t0, \ @@ -334,7 +335,7 @@ nil_format_supports_render(struct nouveau_ws_device *dev, { assert(format < PIPE_FORMAT_COUNT); const struct nil_format_info *fmt = &nil_format_infos[format]; - return fmt->rt != 0; + return fmt->czt != 0; } uint32_t @@ -342,7 +343,7 @@ nil_format_to_render(enum pipe_format format) { assert(format < PIPE_FORMAT_COUNT); const struct nil_format_info *fmt = &nil_format_infos[format]; - return fmt->rt; + return fmt->czt; } const struct nil_tic_format *