microsoft/clc: Fix MSVC unreferenced variable warnings

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-By: Bill Kristiansen <billkris@microsoft.com>
Cc: mesa-stable@lists.freedesktop.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10331>
This commit is contained in:
Jesse Natalie 2021-04-19 10:08:15 -07:00 committed by Marge Bot
parent 1a0fbca1bd
commit d641adca6a
4 changed files with 2 additions and 8 deletions

View file

@ -1018,8 +1018,6 @@ clc_to_dxil(struct clc_context *ctx,
{
struct clc_dxil_object *dxil;
struct nir_shader *nir;
char *err_log;
int ret;
dxil = calloc(1, sizeof(*dxil));
if (!dxil) {

View file

@ -196,9 +196,8 @@ public:
void parseTypePointer(const spv_parsed_instruction_t *ins)
{
enum clc_kernel_arg_address_qualifier addrQualifier;
uint32_t typeId, targetTypeId, storageClass;
uint32_t typeId, storageClass;
const spv_parsed_operand_t *op;
const char *typeName;
assert(ins->num_operands == 3);
@ -327,7 +326,7 @@ public:
void parseOpDecorate(const spv_parsed_instruction_t *ins)
{
const spv_parsed_operand_t *op;
uint32_t id, decoration;
uint32_t id;
assert(ins->num_operands >= 2);

View file

@ -168,8 +168,6 @@ static bool
lower_load_kernel_input(nir_builder *b, nir_intrinsic_instr *intr,
nir_variable *var)
{
nir_intrinsic_instr *load;
b->cursor = nir_before_instr(&intr->instr);
unsigned bit_size = nir_dest_bit_size(intr->dest);

View file

@ -794,7 +794,6 @@ ComputeTest::compile(const std::vector<const char *> &sources,
struct clc_compile_args args = { 0 };
args.args = compile_args.data();
args.num_args = (unsigned)compile_args.size();
struct clc_dxil_object *dxil;
ComputeTest::Shader shader;
std::vector<Shader> shaders;