nvk: Use 4 bits per value for the anti alias values

They should always fit in 3 bits but the masks we use set 4 bits at a
time so it's probably good to be consistent.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30914>
This commit is contained in:
Faith Ekstrand 2024-08-28 17:51:05 -05:00 committed by Marge Bot
parent 6e63a79267
commit 5b69215ec2

View file

@ -2203,9 +2203,9 @@ nvk_mme_set_anti_alias(struct mme_builder *b)
nvk_mme_store_scratch(b, ANTI_ALIAS, anti_alias);
struct mme_value rcp_mss_log2 =
mme_merge(b, mme_zero(), anti_alias, 0, 3, 0);
mme_merge(b, mme_zero(), anti_alias, 0, 4, 0);
struct mme_value samples_log2 =
mme_merge(b, mme_zero(), anti_alias, 0, 3, 4);
mme_merge(b, mme_zero(), anti_alias, 0, 4, 4);
mme_free_reg(b, anti_alias);
/* We've already done all the hard work on the CPU in