mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
gallium/u_threaded_context: Use PIPE_MAX_SHADER_SAMPLER_VIEWS for sampler_buffers
Sampler views and samplers may not be the same limit; in fact one is 32 while the other is 128. The sampler_buffers field is tracking sampler views (yes, naming is confusing) so we should use the right limit. Fixes:e9c41b3214("gallium/u_threaded: add buffer lists - tracking of buffers referenced by tc") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15988> (cherry picked from commit620c5e9dd0)
This commit is contained in:
parent
5b82328bbd
commit
3830fb9769
2 changed files with 2 additions and 2 deletions
|
|
@ -589,7 +589,7 @@
|
|||
"description": "gallium/u_threaded_context: Use PIPE_MAX_SHADER_SAMPLER_VIEWS for sampler_buffers",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "e9c41b321488c23b7d8ec5744f68218bac753505"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -516,7 +516,7 @@ struct threaded_context {
|
|||
uint32_t shader_buffers_writeable_mask[PIPE_SHADER_TYPES];
|
||||
uint32_t image_buffers_writeable_mask[PIPE_SHADER_TYPES];
|
||||
/* Don't use PIPE_MAX_SHADER_SAMPLER_VIEWS because it's too large. */
|
||||
uint32_t sampler_buffers[PIPE_SHADER_TYPES][PIPE_MAX_SAMPLERS];
|
||||
uint32_t sampler_buffers[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_SAMPLER_VIEWS];
|
||||
|
||||
struct tc_batch batch_slots[TC_MAX_BATCHES];
|
||||
struct tc_buffer_list buffer_lists[TC_MAX_BUFFER_LISTS];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue