mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
r600/pipe: add PIPE_CAP_TIMER_RESOLUTION
Reviewed by Marek Olšák Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23703>
This commit is contained in:
parent
6e1f873a0c
commit
979f47a04d
1 changed files with 4 additions and 0 deletions
|
|
@ -496,6 +496,10 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_QUERY_TIMESTAMP:
|
||||
return rscreen->b.info.clock_crystal_freq != 0;
|
||||
|
||||
case PIPE_CAP_TIMER_RESOLUTION:
|
||||
/* Conversion to nanos from cycles per millisecond */
|
||||
return DIV_ROUND_UP(1000000, rscreen->b.info.clock_crystal_freq);
|
||||
|
||||
case PIPE_CAP_MIN_TEXTURE_GATHER_OFFSET:
|
||||
case PIPE_CAP_MIN_TEXEL_OFFSET:
|
||||
return -8;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue