mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 13:00:21 +01:00
i965: Dump out the correct shared function for SEND on Ironlake.
This commit is contained in:
parent
562e2d114e
commit
36eda76fea
6 changed files with 17 additions and 8 deletions
|
|
@ -129,7 +129,8 @@ static void compile_clip_prog( struct brw_context *brw,
|
|||
if (INTEL_DEBUG & DEBUG_CLIP) {
|
||||
printf("clip:\n");
|
||||
for (i = 0; i < program_size / sizeof(struct brw_instruction); i++)
|
||||
brw_disasm(stdout, &((struct brw_instruction *)program)[i]);
|
||||
brw_disasm(stdout, &((struct brw_instruction *)program)[i],
|
||||
intel->gen);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -726,7 +726,7 @@ void brw_upload_urb_fence(struct brw_context *brw);
|
|||
void brw_upload_cs_urb_state(struct brw_context *brw);
|
||||
|
||||
/* brw_disasm.c */
|
||||
int brw_disasm (FILE *file, struct brw_instruction *inst);
|
||||
int brw_disasm (FILE *file, struct brw_instruction *inst, int gen);
|
||||
|
||||
/*======================================================================
|
||||
* Inline conversion functions. These are better-typed than the
|
||||
|
|
|
|||
|
|
@ -774,7 +774,7 @@ static int src1 (FILE *file, struct brw_instruction *inst)
|
|||
}
|
||||
}
|
||||
|
||||
int brw_disasm (FILE *file, struct brw_instruction *inst)
|
||||
int brw_disasm (FILE *file, struct brw_instruction *inst, int gen)
|
||||
{
|
||||
int err = 0;
|
||||
int space = 0;
|
||||
|
|
@ -829,12 +829,20 @@ int brw_disasm (FILE *file, struct brw_instruction *inst)
|
|||
}
|
||||
|
||||
if (inst->header.opcode == BRW_OPCODE_SEND) {
|
||||
int target;
|
||||
|
||||
if (gen >= 5)
|
||||
target = inst->bits2.send_gen5.sfid;
|
||||
else
|
||||
target = inst->bits3.generic.msg_target;
|
||||
|
||||
newline (file);
|
||||
pad (file, 16);
|
||||
space = 0;
|
||||
err |= control (file, "target function", target_function,
|
||||
inst->bits3.generic.msg_target, &space);
|
||||
switch (inst->bits3.generic.msg_target) {
|
||||
target, &space);
|
||||
|
||||
switch (target) {
|
||||
case BRW_MESSAGE_TARGET_MATH:
|
||||
err |= control (file, "math function", math_function,
|
||||
inst->bits3.math.function, &space);
|
||||
|
|
|
|||
|
|
@ -1882,7 +1882,7 @@ void brw_vs_emit(struct brw_vs_compile *c )
|
|||
|
||||
printf("vs-native:\n");
|
||||
for (i = 0; i < p->nr_insn; i++)
|
||||
brw_disasm(stderr, &p->store[i]);
|
||||
brw_disasm(stderr, &p->store[i], intel->gen);
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1717,7 +1717,7 @@ void brw_wm_emit( struct brw_wm_compile *c )
|
|||
|
||||
printf("wm-native:\n");
|
||||
for (i = 0; i < p->nr_insn; i++)
|
||||
brw_disasm(stderr, &p->store[i]);
|
||||
brw_disasm(stderr, &p->store[i], p->brw->intel.gen);
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2111,7 +2111,7 @@ static void brw_wm_emit_glsl(struct brw_context *brw, struct brw_wm_compile *c)
|
|||
if (INTEL_DEBUG & DEBUG_WM) {
|
||||
printf("wm-native:\n");
|
||||
for (i = 0; i < p->nr_insn; i++)
|
||||
brw_disasm(stderr, &p->store[i]);
|
||||
brw_disasm(stderr, &p->store[i], intel->gen);
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue