radv: rename extra graphics pipeline decompress/resummarize fields
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 31 Mar 2020 13:14:37 +0000 (15:14 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 8 Apr 2020 05:55:12 +0000 (07:55 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4389>

src/amd/vulkan/radv_meta_decompress.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_private.h

index 8fc264defe55a96c24202e7d09cc316796440339..7b26470cd2456111926b6c4692fa780beda13359 100644 (file)
@@ -241,11 +241,11 @@ create_pipeline(struct radv_device *device,
 
        struct radv_graphics_pipeline_create_info extra = {
                .use_rectlist = true,
-               .db_flush_depth_inplace = decompress == DECOMPRESS_DEPTH_STENCIL ||
+               .depth_compress_disable = decompress == DECOMPRESS_DEPTH_STENCIL ||
                                          decompress == DECOMPRESS_DEPTH,
-               .db_flush_stencil_inplace = decompress == DECOMPRESS_DEPTH_STENCIL ||
+               .stencil_compress_disable = decompress == DECOMPRESS_DEPTH_STENCIL ||
                                            decompress == DECOMPRESS_STENCIL,
-               .db_resummarize = op == DEPTH_RESUMMARIZE,
+               .resummarize_enable = op == DEPTH_RESUMMARIZE,
        };
 
        result = radv_graphics_pipeline_create(device_h,
index d1c7abef10666a92bd7eed49540ff2d48a02d9ce..f0b93878f3b89102cffb4696be0f1a9a698c97c0 100644 (file)
@@ -3638,9 +3638,9 @@ radv_pipeline_generate_depth_stencil_state(struct radeon_cmdbuf *ctx_cs,
                db_render_control |= S_028000_DEPTH_CLEAR_ENABLE(extra->db_depth_clear);
                db_render_control |= S_028000_STENCIL_CLEAR_ENABLE(extra->db_stencil_clear);
 
-               db_render_control |= S_028000_RESUMMARIZE_ENABLE(extra->db_resummarize);
-               db_render_control |= S_028000_DEPTH_COMPRESS_DISABLE(extra->db_flush_depth_inplace);
-               db_render_control |= S_028000_STENCIL_COMPRESS_DISABLE(extra->db_flush_stencil_inplace);
+               db_render_control |= S_028000_RESUMMARIZE_ENABLE(extra->resummarize_enable);
+               db_render_control |= S_028000_DEPTH_COMPRESS_DISABLE(extra->depth_compress_disable);
+               db_render_control |= S_028000_STENCIL_COMPRESS_DISABLE(extra->stencil_compress_disable);
                db_render_override2 |= S_028010_DISABLE_ZMASK_EXPCLEAR_OPTIMIZATION(extra->db_depth_disable_expclear);
                db_render_override2 |= S_028010_DISABLE_SMEM_EXPCLEAR_OPTIMIZATION(extra->db_stencil_disable_expclear);
        }
index 133f32a4e4e6503c47ded32a3fbf019baedd52a2..159266856ebadd9e785e9c6a1ca2e2d5b7104243 100644 (file)
@@ -1712,9 +1712,9 @@ struct radv_graphics_pipeline_create_info {
        bool db_stencil_clear;
        bool db_depth_disable_expclear;
        bool db_stencil_disable_expclear;
-       bool db_flush_depth_inplace;
-       bool db_flush_stencil_inplace;
-       bool db_resummarize;
+       bool depth_compress_disable;
+       bool stencil_compress_disable;
+       bool resummarize_enable;
        uint32_t custom_blend_mode;
 };