int ret = agx_dump_stats(ctx, binary->size, &stats);
if (ret >= 0) {
- if (agx_should_dump(nir, AGX_DBG_SHADERDB))
+ if (agx_should_dump(nir, AGX_DBG_SHADERDB)) {
fprintf(stderr, "SHADER-DB: %s - %s\n", nir->info.label ?: "",
stats);
+ }
if (debug)
util_debug_message(debug, SHADER_INFO, "%s", stats);
/* Add LOD offset to first level to get the interesting LOD */
int lod_idx = nir_tex_instr_src_index(tex, nir_tex_src_lod);
- if (lod_idx >= 0)
+ if (lod_idx >= 0) {
lod = nir_iadd(
b, lod, nir_u2u32(b, nir_ssa_for_src(b, tex->src[lod_idx].src, 1)));
+ }
/* Add 1 to width-1, height-1 to get base dimensions */
nir_ssa_def *width = nir_iadd_imm(b, width_m1, 1);
agxdecode_dump_frame_count);
printf("agxdecode: dump command stream to file %s\n", buffer);
agxdecode_dump_stream = fopen(buffer, "w");
- if (!agxdecode_dump_stream)
+ if (!agxdecode_dump_stream) {
fprintf(stderr,
"agxdecode: failed to open command stream log file %s\n",
buffer);
+ }
}
}
* other than piglit) actually hits this, we could shadow the query to
* avoid the flush.
*/
- if (query->writer)
+ if (query->writer) {
agx_flush_batch_for_reason(ctx, query->writer,
"Occlusion overwritten");
+ }
assert(query->writer == NULL);
if (dirty.fragment_front_face_2)
agx_ppp_fragment_face_2(&ppp, object_type, &ctx->fs->info);
- if (dirty.fragment_front_stencil)
+ if (dirty.fragment_front_stencil) {
agx_ppp_push_packed(&ppp, ctx->zs->front_stencil.opaque,
FRAGMENT_STENCIL);
+ }
if (dirty.fragment_back_face) {
struct agx_fragment_face_packed back_face;