diff options
author | Jordan Justen <[email protected]> | 2016-05-05 07:43:02 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2016-05-09 11:16:39 -0700 |
commit | 2e2aa992ffefa56013554c36d8ddcb53879bf661 (patch) | |
tree | cc0833654b19afb8f83fff2f986a0388dd4c463f /src/mesa/main/api_validate.c | |
parent | 57763ee73556ad6cbe988d042b46a7c35536cae9 (diff) |
mesa/compute: Fix indirect dispatch buffer size check on 32-bit systems
2655265fcba9017e793026c76e490e04db088c8f, but for compute.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r-- | src/mesa/main/api_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 6ec65e51822..9d29f8d6249 100644 --- a/src/mesa/main/api_validate.c +++ b/src/mesa/main/api_validate.c @@ -1107,7 +1107,7 @@ valid_dispatch_indirect(struct gl_context *ctx, GLintptr indirect, GLsizei size, const char *name) { - GLintptr end = indirect + size; + const uint64_t end = (uint64_t) indirect + size; if (!check_valid_to_compute(ctx, name)) return GL_FALSE; |