}
}
- /* Make sure TEX_SEM_WAIT is set on the last instruction */
- code->inst[code->inst_end].inst0 |= R500_INST_TEX_SEM_WAIT;
-
if (code->max_temp_idx >= compiler->Base.max_temp_regs)
rc_error(&compiler->Base, "Too many hardware temporaries used");
code->inst[ip].inst0 = R500_INST_TYPE_OUT | R500_INST_TEX_SEM_WAIT;
}
+ /* Make sure TEX_SEM_WAIT is set on the last instruction */
+ code->inst[code->inst_end].inst0 |= R500_INST_TEX_SEM_WAIT;
+
/* Enable full flow control mode if we are using loops or have if
* statements nested at least four deep. */
if (s.MaxBranchDepth >= 4 || s.LoopsReserved > 0) {
#include "r300_shader_semantics.h"
struct r300_fragment_shader_code {
+ struct rX00_fragment_program_code code;
struct tgsi_shader_info info;
struct r300_shader_semantics inputs;
uint32_t us_out_w; /* R300_US_W_FMT: 0x46b4 */
struct r300_fragment_program_external_state compare_state;
- struct rX00_fragment_program_code code;
unsigned cb_code_size;
uint32_t *cb_code;