Skip to content

Commit 42f0813

Browse files
davidjwoogfxbot
authored andcommitted
Marked coarse pixel sizes as uniform
Deleted some unused code Change-Id: I6bf1bc9b9feed23eeb82751537527c7d22ef5f29
1 parent 5d5a98a commit 42f0813

File tree

4 files changed

+2
-29
lines changed

4 files changed

+2
-29
lines changed

IGC/Compiler/CISACodeGen/VertexShaderCodeGen.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -229,29 +229,6 @@ QuadEltUnit CVertexShader::GetFinalGlobalOffet(QuadEltUnit globalOffset)
229229
return globalOffset;
230230
}
231231

232-
QuadEltUnit CVertexShader::GetURBOffset(ShaderOutputType outputType, uint attrIdx)
233-
{
234-
switch(outputType)
235-
{
236-
case SHADER_OUTPUT_TYPE_POSITION:
237-
return QuadEltUnit(1);
238-
case SHADER_OUTPUT_TYPE_CLIPDISTANCE_LO:
239-
return QuadEltUnit(2);
240-
case SHADER_OUTPUT_TYPE_CLIPDISTANCE_HI:
241-
return QuadEltUnit(3);
242-
case SHADER_OUTPUT_TYPE_DEFAULT:
243-
return QuadEltUnit(attrIdx) + OctEltUnit(m_properties.m_hasClipDistance ? 2 : 1);
244-
case SHADER_OUTPUT_TYPE_POINTWIDTH:
245-
case SHADER_OUTPUT_TYPE_RENDER_TARGET_ARRAY_INDEX:
246-
case SHADER_OUTPUT_TYPE_VIEWPORT_ARRAY_INDEX:
247-
return QuadEltUnit(0) ;
248-
default:
249-
assert(!"unknown VS output type");
250-
break;
251-
}
252-
return QuadEltUnit(0);
253-
}
254-
255232
/// Returns VS URB allocation size.
256233
/// This is the size of VS URB entry consisting of the header data and attribute data.
257234
OctEltUnit CVertexShader::GetURBAllocationSize() const

IGC/Compiler/CISACodeGen/VertexShaderCodeGen.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ class CVertexShader : public CShader
5353
/// Fills in the kernel program structure with data determined during compilation.
5454
void FillProgram(SVertexShaderKernelProgram* pKernelProgram);
5555

56-
57-
/// Returns the offset within Vertex URB entry specific to given output type.
58-
QuadEltUnit GetURBOffset(ShaderOutputType outputType, uint attrIdx);
5956
private:
6057

6158
/// Returns the size of output Vertex URB Entry.

IGC/Compiler/CISACodeGen/VertexShaderLowering.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,15 +431,12 @@ unsigned int VertexShaderLowering::GetURBOffset(ShaderOutputType type, Value* at
431431
}
432432
case SHADER_OUTPUT_TYPE_POINTWIDTH:
433433
return 0;
434-
break;
435434
case SHADER_OUTPUT_TYPE_VIEWPORT_ARRAY_INDEX:
436435
m_vsPropsPass->DeclareVPAI();
437436
return 0;
438-
break;
439437
case SHADER_OUTPUT_TYPE_RENDER_TARGET_ARRAY_INDEX:
440438
m_vsPropsPass->DeclareRTAI();
441439
return 0;
442-
break;
443440
default:
444441
assert(!"unknown VS output type");
445442
break;

IGC/Compiler/CISACodeGen/WIAnalysis.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,8 @@ WIAnalysis::WIDependancy WIAnalysis::calculate_dep(const CallInst* inst)
10301030
SGVUsage usage = (SGVUsage) cast<ConstantInt>(inst->getOperand(0))->getZExtValue();
10311031
if((usage != VFACE
10321032
)&&
1033+
usage != ACTUAL_COARSE_SIZE_X &&
1034+
usage != ACTUAL_COARSE_SIZE_Y &&
10331035
usage != THREAD_GROUP_ID_X &&
10341036
usage != THREAD_GROUP_ID_Y &&
10351037
usage != THREAD_GROUP_ID_Z

0 commit comments

Comments
 (0)