mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
st/mesa: simplify MaxAtomicBufferSize-logic
MaxAtomicCounters has already been assigned in the loop above in the ssbo_atomic = true case, so this will calculate the same value as the default. While we're at it, fixup indentation on the MaxAtomicBufferBindings assign. Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
38f0c078de
commit
84795f8c64
1 changed files with 3 additions and 4 deletions
|
|
@ -441,12 +441,11 @@ void st_init_limits(struct pipe_screen *screen,
|
|||
c->NumProgramBinaryFormats = 1;
|
||||
|
||||
c->MaxAtomicBufferBindings =
|
||||
c->Program[MESA_SHADER_FRAGMENT].MaxAtomicBuffers;
|
||||
c->Program[MESA_SHADER_FRAGMENT].MaxAtomicBuffers;
|
||||
c->MaxAtomicBufferSize =
|
||||
c->Program[MESA_SHADER_FRAGMENT].MaxAtomicCounters * ATOMIC_COUNTER_SIZE;
|
||||
|
||||
if (!ssbo_atomic) {
|
||||
/* for separate atomic buffers - there atomic buffer size will be
|
||||
limited */
|
||||
c->MaxAtomicBufferSize = c->Program[MESA_SHADER_FRAGMENT].MaxAtomicCounters * ATOMIC_COUNTER_SIZE;
|
||||
/* on all HW with separate atomic (evergreen) the following
|
||||
lines are true. not sure it's worth adding CAPs for this at this
|
||||
stage. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue