freedreno/cffdump: Handle the TILE_ALL flag in unit test generation.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13733>
This commit is contained in:
Emma Anholt 2021-11-05 12:00:33 -07:00 committed by Marge Bot
parent e42450a255
commit a3717c1496
3 changed files with 6 additions and 0 deletions

View File

@ -146,6 +146,10 @@ function A6XX_TEX_CONST(pkt, size)
printf(" {\n");
printf(" .tile_mode = %s,\n", pkt[0].TILE_MODE)
printf(" .ubwc = %s,\n", tostring(pkt[3].FLAG))
if (pkt[3].TILE_ALL) then
printf(" .tile_all = true,\n")
end
if (tostring(pkt[0].SAMPLES) == "MSAA_ONE") then
-- Ignore it, 1 is the default

View File

@ -35,6 +35,7 @@ fdl_test_layout(const struct testcase *testcase, int gpu_id)
struct fdl_layout layout = {
.ubwc = testcase->layout.ubwc,
.tile_mode = testcase->layout.tile_mode,
.tile_all = testcase->layout.tile_all,
};
bool ok = true;

View File

@ -30,6 +30,7 @@ struct testcase {
/* Partially filled layout of input parameters and expected results. */
struct {
uint32_t tile_mode : 2;
bool tile_all : 1;
bool ubwc : 1;
uint32_t width0, height0, depth0;
uint32_t nr_samples;