Skip to content

Commit

Permalink
GL: make ucode compatible with rspq_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
snacchus committed Nov 18, 2024
1 parent a98242b commit 72d82df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/GL/rsp_gl_pipeline.S
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,10 @@ GL_TnL:

lqv vmodes, TEX_GEN_MODE_OFFSET, s1
lqv vplanes_s_i, TEX_GEN_INTEGER_OFFSET+0x00, s1

# If profiling is enabled, this ucode won't fit into IMEM in its entirety.
# In that case, sacrifice linear tex coord generation, a rarely used feature.
#if !RSPQ_PROFILE
# Check if linear tex gen is active for any coordinate
andi t0, state_flags, FLAG_TEX_GEN_LINEAR
beqz t0, 1f
Expand Down Expand Up @@ -583,6 +587,8 @@ GL_TnL:
#undef vplanes_q_f

1:
#endif

#define vsqdist_i $v13
#define vsqdist_f $v14
#define vtmp_i $v15
Expand Down

0 comments on commit 72d82df

Please sign in to comment.