Commit f2352e0b authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Squash warnings (3/3)

parent 7d788505
......@@ -353,7 +353,7 @@ void panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header
panwrap_log("struct nullForVertex nullForVertex_%d = {\n", job_no);
panwrap_indent++;
panwrap_log(".floats = {\n", job_no);
panwrap_log(".floats = {\n");
panwrap_indent++;
for (int i = 0; i < sizeof(f->floats) / sizeof(f->floats[0]); i += 2)
......
......@@ -48,7 +48,7 @@ struct panwrap_mapped_memory {
#define TOUCH_OLEN(mem, addr, sz, offset, ename, number) \
memset(mem->touched + ((addr - mem->gpu_va) / sizeof(uint32_t)), 1, (sz - offset) / sizeof(uint32_t)); \
panwrap_log("\n"); \
if (offset) \
if ((offset) != 0) \
panwrap_log("memcpy(%s + %d, &%s_%d, sizeof(%s_%d) - %d);\n\n", mem->name, (int) ((addr - mem->gpu_va) / sizeof(uint32_t)), ename, number, ename, number, offset); \
else \
panwrap_log("memcpy(%s + %d, &%s_%d, sizeof(%s_%d));\n\n", mem->name, (int) ((addr - mem->gpu_va) / sizeof(uint32_t)), ename, number, ename, number); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment