aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_pass.c
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2019-12-19 18:03:09 -0500
committerMarge Bot <[email protected]>2019-12-19 23:21:01 +0000
commitb9d4c10e4b26b6bb6bd1365d3fc8b3c6288c8da7 (patch)
treee80fe670d52b516c02ba74001484f9398951792a /src/freedreno/vulkan/tu_pass.c
parentd71cd245d7445121342a4933cc6ed8ce3fc6e568 (diff)
turnip: minor warning fixes
Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3177> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3177>
Diffstat (limited to 'src/freedreno/vulkan/tu_pass.c')
-rw-r--r--src/freedreno/vulkan/tu_pass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_pass.c b/src/freedreno/vulkan/tu_pass.c
index f8a24fd85cf..72fe1bf06e6 100644
--- a/src/freedreno/vulkan/tu_pass.c
+++ b/src/freedreno/vulkan/tu_pass.c
@@ -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];