summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bufferobj.c
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-01-04 19:48:08 -0500
committerIlia Mirkin <imirkin@alum.mit.edu>2016-01-05 01:29:49 -0500
commita1d664a0b7dbd8bbab0ff7a179e8960c25a52c0b (patch)
tree2130ae72303c3e87ed640175a2e8865298bf070a /src/mesa/main/bufferobj.c
parent2123bfcc9c8b375ba46bb59d493ddeac1b7291a6 (diff)
downloadexternal_mesa3d-a1d664a0b7dbd8bbab0ff7a179e8960c25a52c0b.zip
external_mesa3d-a1d664a0b7dbd8bbab0ff7a179e8960c25a52c0b.tar.gz
external_mesa3d-a1d664a0b7dbd8bbab0ff7a179e8960c25a52c0b.tar.bz2
Revert "i965/wm: use proper API buffer size for the surfaces."
This reverts commit 8cf2e892fca20c4776b4a07c39918343cb2d4e0e. It's entirely bogus to attempt to store anything about the binding in the buffer object itself, which might be bound any number of times. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Cc: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r--src/mesa/main/bufferobj.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 8a9f9b6..3a05cd5 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -43,7 +43,7 @@
#include "glformats.h"
#include "texstore.h"
#include "transformfeedback.h"
-#include "macros.h"
+
/* Debug flags */
/*#define VBO_DEBUG*/
@@ -2840,7 +2840,6 @@ bind_buffer_range_uniform_buffer(struct gl_context *ctx,
_mesa_reference_buffer_object(ctx, &ctx->UniformBuffer, bufObj);
bind_uniform_buffer(ctx, index, bufObj, offset, size, GL_FALSE);
- bufObj->BufferRangeSize = MIN2(size, bufObj->Size);
}
/**
@@ -2876,7 +2875,6 @@ bind_buffer_range_shader_storage_buffer(struct gl_context *ctx,
_mesa_reference_buffer_object(ctx, &ctx->ShaderStorageBuffer, bufObj);
bind_shader_storage_buffer(ctx, index, bufObj, offset, size, GL_FALSE);
- bufObj->BufferRangeSize = MIN2(size, bufObj->Size);
}
/**