r600: Emit EOP for more CF instruction types
So far on pre-cayman chipsets the CF instructions CF_OP_LOOP_END, CF_OP_CALL_FS, CF_OP_POP, and CF_OP_GDS an extra CF_NOP instruction was added to add the EOP flag, even though this is not actually needed, because all these instrutions support the EOP flag. This patch removes the fixup code, adds setting the EOP flag for the according instructions as well as others like CF_OP_TEX and CF_OP_VTX, and adds writing out EOP for this type of instruction in the disassembler. This also fixes a bug where shaders were created that didn't actually have the EOP flag set in the last CF instruction, which might have resulted in GPU lockups. [airlied: cleaned up a little] Signed-off-by:Gert Wollny <gw.fossdev@gmail.com> Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by:
Dave Airlie <airlied@redhat.com>
- src/gallium/drivers/r600/eg_asm.c 9 additions, 4 deletionssrc/gallium/drivers/r600/eg_asm.c
- src/gallium/drivers/r600/r600_asm.c 4 additions, 1 deletionsrc/gallium/drivers/r600/r600_asm.c
- src/gallium/drivers/r600/r600_shader.c 1 addition, 1 deletionsrc/gallium/drivers/r600/r600_shader.c
- src/gallium/drivers/r600/r700_asm.c 2 additions, 1 deletionsrc/gallium/drivers/r600/r700_asm.c