Skip to content

Commit

Permalink
rdpq: add rdpq_get_combiner_raw
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Dec 29, 2024
1 parent 015b5b0 commit fc9cc8b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/rdpq.h
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,17 @@ inline void rdpq_set_combiner_raw(uint64_t comb) {
AUTOSYNC_PIPE);
}

/**
* @brief Read the current combiner register.
*
* This function executes a full sync (#rspq_wait) and then extracts the
* current raw combiner from the RSP state. This should be used only
* for debugging purposes.
*
* @return THe current value of the combiner register.
*/
uint64_t rdpq_get_combiner_raw(void);

/**
* @brief Add a fence to synchronize RSP with RDP commands.
*
Expand Down
6 changes: 6 additions & 0 deletions src/rdpq/rdpq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,12 @@ uint64_t rdpq_get_other_modes_raw(void)
return state->rdp_mode.other_modes;
}

uint64_t rdpq_get_combiner_raw(void)
{
rsp_queue_t *state = __rspq_get_state();
return state->rdp_mode.combiner;
}

void rdpq_set_tile_autotmem(int16_t tmem_bytes)
{
if (tmem_bytes >= 0) {
Expand Down

0 comments on commit fc9cc8b

Please sign in to comment.