From: Jonathan Marek Date: Tue, 24 Mar 2020 01:21:11 +0000 (-0400) Subject: freedreno/registers: more GRAS_CL_CNTL bits, Z_CLAMP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07a8100aed64c64dee5966c5560f299d866bd0c9;p=mesa.git freedreno/registers: more GRAS_CL_CNTL bits, Z_CLAMP Signed-off-by: Jonathan Marek Part-of: --- diff --git a/src/freedreno/registers/a6xx.xml b/src/freedreno/registers/a6xx.xml index 04f632ebea0..1fdc21e9839 100644 --- a/src/freedreno/registers/a6xx.xml +++ b/src/freedreno/registers/a6xx.xml @@ -1821,9 +1821,14 @@ to upconvert to 32b float internally? - - - + + + + + + + + @@ -1876,6 +1881,10 @@ to upconvert to 32b float internally? + + + + @@ -2209,6 +2218,7 @@ to upconvert to 32b float internally? + Z_TEST_ENABLE bit is set for zfunc other than GL_ALWAYS or GL_NEVER @@ -2286,6 +2296,10 @@ to upconvert to 32b float internally? + + + + diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c index c739ad98e47..3d25428fe82 100644 --- a/src/freedreno/vulkan/tu_pipeline.c +++ b/src/freedreno/vulkan/tu_pipeline.c @@ -1342,8 +1342,8 @@ tu6_emit_scissor(struct tu_cs *cs, const VkRect2D *scissor) static void tu6_emit_gras_unknowns(struct tu_cs *cs) { - tu_cs_emit_pkt4(cs, REG_A6XX_GRAS_DISABLE_CNTL, 1); - tu_cs_emit(cs, A6XX_GRAS_DISABLE_CNTL_VP_CLIP_CODE_IGNORE); + tu_cs_emit_pkt4(cs, REG_A6XX_GRAS_CL_CNTL, 1); + tu_cs_emit(cs, A6XX_GRAS_CL_CNTL_VP_CLIP_CODE_IGNORE); tu_cs_emit_pkt4(cs, REG_A6XX_GRAS_UNKNOWN_8001, 1); tu_cs_emit(cs, 0x0); tu_cs_emit_pkt4(cs, REG_A6XX_GRAS_LAYER_CNTL, 1); diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c b/src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c index db0c249d83e..2225ea0b2eb 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c @@ -52,7 +52,7 @@ __fd6_setup_rasterizer_stateobj(struct fd_context *ctx, } OUT_REG(ring, - A6XX_GRAS_DISABLE_CNTL(.vp_clip_code_ignore = 1), + A6XX_GRAS_CL_CNTL(.vp_clip_code_ignore = 1), A6XX_GRAS_UNKNOWN_8001()); OUT_REG(ring,