mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
iris: Use 64K BOs for the shader uploader
16K was apparently a little unrealistic - Unigine Superposition has individual shaders that are larger than 16K. Yikes. Moving to 64K also puts shaders into the same cache bucket as other allocations. Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25447>
This commit is contained in:
parent
21170a58d8
commit
6932827a47
1 changed files with 4 additions and 2 deletions
|
|
@ -264,11 +264,13 @@ iris_init_program_cache(struct iris_context *ice)
|
|||
_mesa_hash_table_create(ice, keybox_hash, keybox_equals);
|
||||
|
||||
ice->shaders.uploader_driver =
|
||||
u_upload_create(&ice->ctx, 16384, PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE,
|
||||
u_upload_create(&ice->ctx, 64 * 1024,
|
||||
PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE,
|
||||
IRIS_RESOURCE_FLAG_SHADER_MEMZONE |
|
||||
IRIS_RESOURCE_FLAG_DEVICE_MEM);
|
||||
ice->shaders.uploader_unsync =
|
||||
u_upload_create(&ice->ctx, 16384, PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE,
|
||||
u_upload_create(&ice->ctx, 64 * 1024,
|
||||
PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE,
|
||||
IRIS_RESOURCE_FLAG_SHADER_MEMZONE |
|
||||
IRIS_RESOURCE_FLAG_DEVICE_MEM);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue