mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
pan/bi: Add a define for the Bifrost shader prefetch size
Found by adding NOPs to the start of a shader and checking dmesg to see at what sizes the GPU faulted trying to read the following non-executable page. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8428>
This commit is contained in:
parent
9a937330ef
commit
e74b2edcef
1 changed files with 4 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ static const struct debug_named_value bifrost_debug_options[] = {
|
||||||
|
|
||||||
DEBUG_GET_ONCE_FLAGS_OPTION(bifrost_debug, "BIFROST_MESA_DEBUG", bifrost_debug_options, 0)
|
DEBUG_GET_ONCE_FLAGS_OPTION(bifrost_debug, "BIFROST_MESA_DEBUG", bifrost_debug_options, 0)
|
||||||
|
|
||||||
|
/* How many bytes are prefetched by the Bifrost shader core. Past the end of
|
||||||
|
* the shader, this range must contain valid instructions or zero. */
|
||||||
|
#define BIFROST_SHADER_PREFETCH 96
|
||||||
|
|
||||||
/* TODO: This is not thread safe!! */
|
/* TODO: This is not thread safe!! */
|
||||||
static unsigned SHADER_DB_COUNT = 0;
|
static unsigned SHADER_DB_COUNT = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue