diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-11-02 04:53:47 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-11-02 04:53:47 +0000 |
commit | b44518130b33cadb5c1d619e9e936ae0e0dbf7cb (patch) | |
tree | 6069eb03c39fbc79808a7d94f857118cce75cbe3 /lib/mesa/src/intel/compiler/brw_vec4.cpp | |
parent | 32aeb3c41fedbbd7b11aacfec48e8f699d16bff0 (diff) |
Merge Mesa 23.1.9
Diffstat (limited to 'lib/mesa/src/intel/compiler/brw_vec4.cpp')
-rw-r--r-- | lib/mesa/src/intel/compiler/brw_vec4.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/mesa/src/intel/compiler/brw_vec4.cpp b/lib/mesa/src/intel/compiler/brw_vec4.cpp index 6d7672542..eda343b48 100644 --- a/lib/mesa/src/intel/compiler/brw_vec4.cpp +++ b/lib/mesa/src/intel/compiler/brw_vec4.cpp @@ -668,6 +668,12 @@ vec4_visitor::opt_algebraic() break; case BRW_OPCODE_MUL: + if (inst->src[1].file != IMM) + continue; + + if (brw_reg_type_is_floating_point(inst->src[1].type)) + break; + if (inst->src[1].is_zero()) { inst->opcode = BRW_OPCODE_MOV; switch (inst->src[0].type) { @@ -2636,7 +2642,7 @@ brw_compile_vs(const struct brw_compiler *compiler, fs_visitor v(compiler, params->log_data, mem_ctx, &key->base, &prog_data->base.base, nir, 8, - debug_enabled); + params->stats != NULL, debug_enabled); if (!v.run_vs()) { params->error_str = ralloc_strdup(mem_ctx, v.fail_msg); return NULL; |