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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand
2023-01-30 20:11:54 -06:00
committed by Marge Bot
parent db0a63c909
commit e6866593d5
+5 -4
View File
@@ -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 *