@@ -7852,18 +7852,12 @@ void EmitPass::getCoarsePixelSize(CVariable* destination, const uint component,
7852
7852
7853
7853
CPixelShader* const psProgram = static_cast<CPixelShader*>(m_currShader);
7854
7854
CVariable* r;
7855
- bool isR1Lo = false;
7856
7855
// Coarse pixel sizes are in R1 for both simd32 halves.
7857
7856
{
7858
7857
r = psProgram->GetPhase() == PSPHASE_PIXEL ? psProgram->GetCoarseR1() : psProgram->GetR1();
7859
- isR1Lo = true;
7860
7858
}
7861
7859
r = m_currShader->GetVarHalf(r, 0);
7862
7860
CVariable* const coarsePixelSize = m_currShader->BitCast(r, ISA_TYPE_UB);
7863
- if (isR1Lo && isCodePatchCandidate)
7864
- {
7865
- psProgram->AppendR1Lo(coarsePixelSize);
7866
- }
7867
7861
m_encoder->SetSrcRegion(0, 0, 1, 0);
7868
7862
uint subReg;
7869
7863
{
@@ -7914,10 +7908,6 @@ void EmitPass::emitPSSGV(GenIntrinsicInst* inst)
7914
7908
CVariable* floatR1 = nullptr;
7915
7909
{
7916
7910
floatR1 = psProgram->BitCast(psProgram->GetR1(), ISA_TYPE_F);
7917
- if (m_encoder->IsCodePatchCandidate())
7918
- {
7919
- psProgram->AppendR1Lo(floatR1);
7920
- }
7921
7911
}
7922
7912
7923
7913
// Returns (x - xstart) or (y - ystart) in float.
@@ -8127,10 +8117,6 @@ void EmitPass::emitPSSGV(GenIntrinsicInst* inst)
8127
8117
m_encoder->SetSimdSize(simdSize);
8128
8118
m_encoder->SetMask(i == 0 ? EMASK_Q1 : EMASK_Q2);
8129
8119
m_encoder->SetDstSubVar(i);
8130
- if (m_encoder->IsCodePatchCandidate())
8131
- {
8132
- psProgram->AppendR1Lo(src);
8133
- }
8134
8120
m_encoder->Cast(dst, src);
8135
8121
m_encoder->Push();
8136
8122
}
@@ -8301,16 +8287,10 @@ void EmitPass::getPixelPosition(CVariable* destination, const uint component, bo
8301
8287
{
8302
8288
// Coarse pixel sizes are in R1 for both simd32 halves.
8303
8289
CVariable* r;
8304
- bool isR1Lo = false;
8305
8290
{
8306
8291
r = m_currShader->GetVarHalf(psProgram->GetR1(), 0);
8307
- isR1Lo = true;
8308
8292
}
8309
8293
CVariable* CPSize = m_currShader->BitCast(r, ISA_TYPE_UB);
8310
- if (isR1Lo && isCodePatchCandidate)
8311
- {
8312
- psProgram->AppendR1Lo(CPSize);
8313
- }
8314
8294
pixelSize =
8315
8295
m_currShader->GetNewVariable(
8316
8296
numLanes(m_currShader->m_SIMDSize), ISA_TYPE_UW, EALIGN_GRF, CName::NONE);
@@ -8345,7 +8325,6 @@ void EmitPass::getPixelPosition(CVariable* destination, const uint component, bo
8345
8325
if (isCodePatchCandidate)
8346
8326
{
8347
8327
m_encoder->SetPayloadSectionAsPrimary();
8348
- psProgram->AppendR1Lo(position);
8349
8328
m_currShader->AddPatchTempSetup(destination);
8350
8329
}
8351
8330
m_encoder->Add(destination, position, pixelSize);
0 commit comments