Mesa (master): mesa: AtomicBufferBindings should be initialized to zero.

Tapani Pälli tpalli at kemper.freedesktop.org
Mon Aug 17 07:31:05 UTC 2015


Module: Mesa
Branch: master
Commit: dd9d2963d66d24394b20823fcffb809cc8d5389d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd9d2963d66d24394b20823fcffb809cc8d5389d

Author: Marta Lofstedt <marta.lofstedt at intel.com>
Date:   Thu Aug 13 12:59:40 2015 +0200

mesa: AtomicBufferBindings should be initialized to zero.

According to OpenGL specification version 4.5 table 23.46
and OpenGL ES specification version 3.1 table 20.31:
ATOMIC_COUNTER_BUFFER_START and ATOMIC_COUNTER_BUFFER_SIZE
should have the initial value of zero.

Signed-off-by: Marta Lofstedt <marta.lofstedt at intel.com>
Reviewed-by: Erik Faye-Lund <kusmabite at gmail.com>

---

 src/mesa/main/bufferobj.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 1cdea93..e17b41c 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -866,8 +866,8 @@ _mesa_init_buffer_objects( struct gl_context *ctx )
       _mesa_reference_buffer_object(ctx,
 				    &ctx->AtomicBufferBindings[i].BufferObject,
 				    ctx->Shared->NullBufferObj);
-      ctx->AtomicBufferBindings[i].Offset = -1;
-      ctx->AtomicBufferBindings[i].Size = -1;
+      ctx->AtomicBufferBindings[i].Offset = 0;
+      ctx->AtomicBufferBindings[i].Size = 0;
    }
 }
 




More information about the mesa-commit mailing list