struct lp_type type = bld->type;
const unsigned width = chan_desc.size;
const unsigned start = chan_desc.shift;
- const unsigned stop = start + width;
+ ASSERTED const unsigned stop = start + width;
LLVMValueRef chan = NULL;
switch(chan_desc.type) {
case UTIL_FORMAT_TYPE_UNSIGNED:
{
enum pipe_format format = format_desc->format;
LLVMValueRef packed[4];
- unsigned num_stores;
+ unsigned num_stores = 0;
memset(packed, 0, sizeof(LLVMValueRef) * 4);
if (format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN &&
static void end_primitive(struct lp_build_nir_context *bld_base, uint32_t stream_id)
{
- struct lp_build_nir_soa_context *bld = (struct lp_build_nir_soa_context *)bld_base;
+ ASSERTED struct lp_build_nir_soa_context *bld = (struct lp_build_nir_soa_context *)bld_base;
assert(bld->gs_iface->end_primitive);
break;
default:
assert(0);
+ *dims = 0;
return;
}
}
unsigned buf = bufreg->Register.Index;
bool is_shared = bufreg->Register.File == TGSI_FILE_MEMORY;
- LLVMAtomicRMWBinOp op;
+ LLVMAtomicRMWBinOp op = -1;
switch (emit_data->inst->Instruction.Opcode) {
case TGSI_OPCODE_ATOMUADD:
op = LLVMAtomicRMWBinOpAdd;