Commit 84795f8c authored by Erik Faye-Lund 's avatar Erik Faye-Lund

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

While we're at it, fixup indentation on the MaxAtomicBufferBindings
Signed-off-by: Erik Faye-Lund 's avatarErik Faye-Lund <>
Reviewed-by: default avatarMarek Olšák <>
Reviewed-by: Gurchetan Singh's avatarGurchetan Singh <>
parent 38f0c078
......@@ -441,12 +441,11 @@ void st_init_limits(struct pipe_screen *screen,
c->NumProgramBinaryFormats = 1;
c->MaxAtomicBufferBindings =
c->MaxAtomicBufferSize =
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. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment