turnip: minor warning fixes
authorJonathan Marek <jonathan@marek.ca>
Thu, 19 Dec 2019 23:03:09 +0000 (18:03 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Dec 2019 23:21:01 +0000 (23:21 +0000)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3177>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3177>

src/freedreno/vulkan/tu_pass.c
src/freedreno/vulkan/tu_pipeline.c

index f8a24fd85cfcd0321d3f3ab09b2bd045a38915e5..72fe1bf06e6855da9268c02fa58eead908db1c19 100644 (file)
@@ -61,7 +61,7 @@ compute_gmem_offsets(struct tu_render_pass *pass, uint32_t gmem_size)
     * result:  nblocks = {12, 52}, pixels = 196608
     * optimal: nblocks = {13, 51}, pixels = 208896
     */
-   uint32_t block_total = 0, gmem_blocks = gmem_size / GMEM_ALIGN;
+   uint32_t gmem_blocks = gmem_size / GMEM_ALIGN;
    uint32_t offset = 0, pixels = ~0u;
    for (uint32_t i = 0; i < pass->attachment_count; i++) {
       struct tu_render_pass_attachment *att = &pass->attachments[i];
index 0c84c5672101f63db9a35d300a77f48cb9d5898c..799b0b2a3de7f87e5c0d4be9c4ad2bee5b4135b0 100644 (file)
@@ -874,7 +874,7 @@ tu6_emit_fs_outputs(struct tu_cs *cs,
 
    uint32_t gras_su_depth_plane_cntl = 0;
    uint32_t rb_depth_plane_cntl = 0;
-   if (fs->no_earlyz | fs->writes_pos) {
+   if (fs->no_earlyz || fs->writes_pos) {
       gras_su_depth_plane_cntl |= A6XX_GRAS_SU_DEPTH_PLANE_CNTL_FRAG_WRITES_Z;
       rb_depth_plane_cntl |= A6XX_RB_DEPTH_PLANE_CNTL_FRAG_WRITES_Z;
    }