decode: Use correct comparison for images

Fixes: e00dea22c8
    decode: check args for decode functions.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Gert Wollny 6 years ago
parent 5daad80e21
commit 4617b9ae46
  1. 2
      src/vrend_decode.c

@ -1214,7 +1214,7 @@ static int vrend_decode_set_shader_images(struct vrend_decode_ctx *ctx, uint16_t
if (num_images < 1) {
return 0;
}
if (start_slot > PIPE_SHADER_TYPES ||
if (start_slot > PIPE_MAX_SHADER_IMAGES ||
start_slot > PIPE_MAX_SHADER_IMAGES - num_images)
return EINVAL;

Loading…
Cancel
Save