Commit 2655265f authored by Kenneth Graunke's avatar Kenneth Graunke

mesa: Fix indirect draw buffer size check on 32-bit systems.

Fixes dEQP-GLES31.functional subtests:

These tests use really large values that overflow GLsizeiptr, at
which point the buffer size isn't less than "end".

Bugzilla: Kenneth Graunke's avatarKenneth Graunke <>
Reviewed-by: Alejandro Piñeiro's avatarAlejandro Piñeiro <>
Reviewed-by: Mark Janes's avatarMark Janes <>
parent 70f89dd7
......@@ -696,7 +696,7 @@ valid_draw_indirect(struct gl_context *ctx,
GLenum mode, const GLvoid *indirect,
GLsizei size, const char *name)
const GLsizeiptr end = (GLsizeiptr)indirect + size;
const uint64_t end = (uint64_t) (uintptr_t) indirect + size;
/* OpenGL ES 3.1 spec. section 10.5:
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