vrend: Fix warnings about no return value and braces

v2: Fix another missing return value warning
    Fix a warning about braces around an empty statement

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
macos/master
Gert Wollny 5 years ago
parent 5d03711f88
commit 72ef431508
  1. 1
      src/vrend_renderer.c
  2. 4
      src/vrend_shader.c

@ -7435,6 +7435,7 @@ int vrend_renderer_transfer_iov(const struct vrend_transfer_info *info,
default: default:
assert(0); assert(0);
} }
return 0;
} }
int vrend_transfer_inline_write(struct vrend_context *ctx, int vrend_transfer_inline_write(struct vrend_context *ctx,

@ -1788,6 +1788,7 @@ static const struct vrend_shader_io *get_io_slot(const struct vrend_shader_io *s
return result; return result;
} }
assert(0 && "Output not found"); assert(0 && "Output not found");
return NULL;
} }
static inline void static inline void
@ -5809,10 +5810,11 @@ static void emit_ios_indirect_generics_input(struct dump_ctx *ctx, const char *p
if (ctx->generic_input_range.used) { if (ctx->generic_input_range.used) {
int size = ctx->generic_input_range.io.last - ctx->generic_input_range.io.sid + 1; int size = ctx->generic_input_range.io.last - ctx->generic_input_range.io.sid + 1;
assert(size < 256 && size >= 0); assert(size < 256 && size >= 0);
if (size < ctx->key->num_indirect_generic_inputs) if (size < ctx->key->num_indirect_generic_inputs) {
VREND_DEBUG(dbg_shader, NULL, "WARNING: shader key indicates less indirect inputs" VREND_DEBUG(dbg_shader, NULL, "WARNING: shader key indicates less indirect inputs"
" (%d) then are actually used (%d)\n", " (%d) then are actually used (%d)\n",
ctx->key->num_indirect_generic_inputs, size); ctx->key->num_indirect_generic_inputs, size);
}
if (prefer_generic_io_block(ctx, io_in)) { if (prefer_generic_io_block(ctx, io_in)) {

Loading…
Cancel
Save