浏览代码

zink: error-check right variable

That's not the value we just allocated...

CoverityID: 1455177
Reviewed-by: Dave Airlie <airlied@redhat.com>
master
Erik Faye-Lund 7 年前
父节点
当前提交
7a63124a06
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1
    1
      src/gallium/drivers/zink/nir_to_spirv/spirv_builder.c

+ 1
- 1
src/gallium/drivers/zink/nir_to_spirv/spirv_builder.c 查看文件

@@ -840,7 +840,7 @@ get_const_def(struct spirv_builder *b, SpvOp op, SpvId type,
}

struct spirv_const *cnst = CALLOC_STRUCT(spirv_const);
if (!type)
if (!cnst)
return 0;

cnst->op = op;

正在加载...
取消
保存