i915: do not calculate native instructions
This isn't wired up anywhere, so let's just drop it. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31538>
This commit is contained in:

committed by
Marge Bot

parent
3c5fe03b92
commit
cf71e5534b
@@ -75,10 +75,6 @@ struct i915_fp_compile {
|
||||
|
||||
bool log_program_errors;
|
||||
char *error;
|
||||
uint32_t NumNativeInstructions;
|
||||
uint32_t NumNativeAluInstructions;
|
||||
uint32_t NumNativeTexInstructions;
|
||||
uint32_t NumNativeTexIndirections;
|
||||
};
|
||||
|
||||
/* Having zero and one in here makes the definition of swizzle a lot
|
||||
|
@@ -1014,19 +1014,8 @@ i915_fini_compile(struct i915_context *i915, struct i915_fp_compile *p)
|
||||
i915_program_error(p, "Empty fragment shader");
|
||||
|
||||
if (strlen(p->error) != 0) {
|
||||
p->NumNativeInstructions = 0;
|
||||
p->NumNativeAluInstructions = 0;
|
||||
p->NumNativeTexInstructions = 0;
|
||||
p->NumNativeTexIndirections = 0;
|
||||
|
||||
i915_use_passthrough_shader(ifs);
|
||||
} else {
|
||||
p->NumNativeInstructions =
|
||||
p->nr_alu_insn + p->nr_tex_insn + p->nr_decl_insn;
|
||||
p->NumNativeAluInstructions = p->nr_alu_insn;
|
||||
p->NumNativeTexInstructions = p->nr_tex_insn;
|
||||
p->NumNativeTexIndirections = p->nr_tex_indirect;
|
||||
|
||||
/* patch in the program length */
|
||||
p->declarations[0] |= program_size + decl_size - 2;
|
||||
|
||||
|
Reference in New Issue
Block a user