mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 18:00:52 +01:00
mesa/compute: drop pointless casts.
We already are a GLintptr, casting won't help. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
76a423efe0
commit
2dd3fc3cac
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue