mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 00:28:51 +02:00
zink: massively shrink qbo size for timestamp queries
timestamp queries can only ever record a single value, so
the qbo only needs to be large enough for that single value
fixes #9092
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23631>
(cherry picked from commit d032de726a)
This commit is contained in:
parent
f259a7b0c3
commit
4c443d2115
2 changed files with 2 additions and 2 deletions
|
|
@ -1093,7 +1093,7 @@
|
|||
"description": "zink: massively shrink qbo size for timestamp queries",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ qbo_append(struct pipe_screen *screen, struct zink_query *query)
|
|||
qbo->buffers[i] = pipe_buffer_create(screen, PIPE_BIND_QUERY_BUFFER,
|
||||
PIPE_USAGE_STAGING,
|
||||
/* this is the maximum possible size of the results in a given buffer */
|
||||
NUM_QUERIES * get_num_results(query) * sizeof(uint64_t));
|
||||
(query->type == PIPE_QUERY_TIMESTAMP ? 1 : NUM_QUERIES) * get_num_results(query) * sizeof(uint64_t));
|
||||
if (!qbo->buffers[i])
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue