Skip to content

Commit

Permalink
come on!
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Nov 27, 2023
1 parent f92b1ae commit 7c7c288
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions src/freedreno/ir3/ir3_disk_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,16 @@ ir3_disk_cache_init(struct ir3_compiler *compiler)
const char *renderer = fd_dev_name(compiler->dev_id);
const struct build_id_note *note =
build_id_find_nhdr_for_addr(ir3_disk_cache_init);
assert(note && build_id_length(note) == 20); /* sha1 */

const uint8_t *id_sha1 = build_id_data(note);
assert(id_sha1);

char timestamp[41];
_mesa_sha1_format(timestamp, id_sha1);
if (note != NULL)
{
assert(note && build_id_length(note) == 20); /* sha1 */

const uint8_t *id_sha1 = build_id_data(note);
assert(id_sha1);

char timestamp[41];
_mesa_sha1_format(timestamp, id_sha1);
}

uint64_t driver_flags = ir3_shader_debug;
if (compiler->options.robust_buffer_access2)
Expand Down
4 changes: 2 additions & 2 deletions src/gallium/drivers/freedreno/a6xx/fd6_screen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ fd6_screen_init(struct pipe_screen *pscreen)
screen->max_rts = A6XX_MAX_RENDER_TARGETS;

printf("FD6: ccu\n");
screen->ccu_offset_bypass = screen->info->num_ccu * A6XX_CCU_DEPTH_SIZE;
screen->ccu_offset_bypass = 1 * A6XX_CCU_DEPTH_SIZE;
screen->ccu_offset_gmem = (screen->gmemsize_bytes -
screen->info->num_ccu * A6XX_CCU_GMEM_COLOR_SIZE);
1 * A6XX_CCU_GMEM_COLOR_SIZE);

/* Currently only FB_READ forces GMEM path, mostly because we'd have to
* deal with cmdstream patching otherwise..
Expand Down

0 comments on commit 7c7c288

Please sign in to comment.