summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_validate.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-05-05 10:41:29 +1000
committerDave Airlie <[email protected]>2016-05-05 20:28:41 +1000
commit2dd3fc3cac020237ae0dd924941dcfaf1c11da0b (patch)
treee3f8bef9e52cd54aa5454365379afecbbab87a75 /src/mesa/main/api_validate.c
parent76a423efe09dcaeb86badd3ec449da2ea56c5a9c (diff)
mesa/compute: drop pointless casts.
We already are a GLintptr, casting won't help. Reviewed-by: Alejandro PiƱeiro <[email protected]> Reviewed-by: Anuj Phogat <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r--src/mesa/main/api_validate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index 688408f8dee..6ec65e51822 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 = (GLintptr)indirect + size;
+ GLintptr end = indirect + size;
if (!check_valid_to_compute(ctx, name))
return GL_FALSE;
@@ -1117,13 +1117,13 @@ valid_dispatch_indirect(struct gl_context *ctx,
* "An INVALID_VALUE error is generated if indirect is negative or is not a
* multiple of four."
*/
- if ((GLintptr)indirect & (sizeof(GLuint) - 1)) {
+ if (indirect & (sizeof(GLuint) - 1)) {
_mesa_error(ctx, GL_INVALID_VALUE,
"%s(indirect is not aligned)", name);
return GL_FALSE;
}
- if ((GLintptr)indirect < 0) {
+ if (indirect < 0) {
_mesa_error(ctx, GL_INVALID_VALUE,
"%s(indirect is less than zero)", name);
return GL_FALSE;