RD DXIL Disassembly: Use HLSL intrinsic names where possible for dx.op.*

This commit is contained in:
Jake Turner
2024-05-11 06:49:50 +01:00
parent 8a5b5754fd
commit 139167a001
@@ -113,37 +113,37 @@ static const char *funcNameSigs[] = {
"MinPrecXRegStore(regIndex,index,component,value)",
"LoadInput(inputSigId,rowIndex,colIndex,gsVertexAxis)",
"StoreOutput(outputSigId,rowIndex,colIndex,value)",
"FAbs()",
"Saturate()",
"IsNaN()",
"IsInf()",
"IsFinite()",
"abs()",
"sat()",
"isnan()",
"isinf()",
"isfinite()",
"IsNormal()",
"Cos()",
"Sin()",
"Tan()",
"Acos()",
"Asin()",
"Atan()",
"Hcos()",
"Hsin()",
"Htan()",
"Exp()",
"cos()",
"sin()",
"tan()",
"acos()",
"asin()",
"atan()",
"cosh()",
"sinh()",
"tanh()",
"exp()",
"Frc()",
"Log()",
"Sqrt()",
"Rsqrt()",
"log()",
"sqrt()",
"rsqrt()",
"Round_ne()",
"Round_ni()",
"Round_pi()",
"Round_z()",
"Bfrev()",
"Countbits()",
"FirstbitLo()",
"FirstbitHi()",
"countbits()",
"firstbitlow()",
"firstbithigh()",
"FirstbitSHi()",
"FMax()",
"FMin()",
"max()",
"min()",
"IMax()",
"IMin()",
"UMax()",
@@ -153,17 +153,17 @@ static const char *funcNameSigs[] = {
"UDiv()",
"UAddc()",
"USubb()",
"FMad()",
"Fma()",
"mad()",
"fma()",
"IMad()",
"UMad()",
"Msad()",
"msad4()",
"Ibfe()",
"Ubfe()",
"Bfi(width,offset,value,replacedValue)",
"Dot2(ax,ay,bx,by)",
"Dot3(ax,ay,az,bx,by,bz)",
"Dot4(ax,ay,az,aw,bx,by,bz,bw)",
"dot2(ax,ay,bx,by)",
"dot3(ax,ay,az,bx,by,bz)",
"dot4(ax,ay,az,aw,bx,by,bz,bw)",
"CreateHandle(resourceClass,rangeId,index,nonUniformIndex)",
"CBufferLoad(handle,byteOffset,alignment)",
"CBufferLoadLegacy(handle,regIndex)",
@@ -183,20 +183,20 @@ static const char *funcNameSigs[] = {
"TextureGather(srv,sampler,coord0,coord1,coord2,coord3,offset0,offset1,channel)",
"TextureGatherCmp(srv,sampler,coord0,coord1,coord2,coord3,offset0,offset1,channel,compareValue)",
"Texture2DMSGetSamplePosition(srv,index)",
"RenderTargetGetSamplePosition(index)",
"RenderTargetGetSampleCount()",
"GetRenderTargetSamplePosition(index)",
"GetRenderTargetSampleCount()",
"AtomicBinOp(handle,atomicOp,offset0,offset1,offset2,newValue)",
"AtomicCompareExchange(handle,offset0,offset1,offset2,compareValue,newValue)",
"Barrier(barrierMode)",
"CalculateLOD(handle,sampler,coord0,coord1,coord2,clamped)",
"Discard(condition)",
"DerivCoarseX()",
"DerivCoarseY()",
"DerivFineX()",
"DerivFineY()",
"EvalSnapped(inputSigId,inputRowIndex,inputColIndex,offsetX,offsetY)",
"EvalSampleIndex(inputSigId,inputRowIndex,inputColIndex,sampleIndex)",
"EvalCentroid(inputSigId,inputRowIndex,inputColIndex)",
"ddx_coarse()",
"ddy_coarse()",
"ddx_fine()",
"ddy_fine()",
"EvaluateAttributeSnapped(inputSigId,inputRowIndex,inputColIndex,offsetX,offsetY)",
"EvaluateAttributeAtSample(inputSigId,inputRowIndex,inputColIndex,sampleIndex)",
"EvaluateAttributeCentroid(inputSigId,inputRowIndex,inputColIndex)",
"SampleIndex()",
"Coverage()",
"InnerCoverage()",
@@ -208,7 +208,7 @@ static const char *funcNameSigs[] = {
"CutStream(streamId)",
"EmitThenCutStream(streamId)",
"GSInstanceID()",
"MakeDouble(lo,hi)",
"asdouble(lo,hi)",
"SplitDouble()",
"LoadOutputControlPoint(inputSigId,row,col,index)",
"LoadPatchConstant(inputSigId,row,col)",
@@ -233,12 +233,12 @@ static const char *funcNameSigs[] = {
"QuadOp(value,op)",
"BitcastI16toF16()",
"BitcastF16toI16()",
"BitcastI32toF32()",
"BitcastF32toI32()",
"asfloat()",
"asint()",
"BitcastI64toF64()",
"BitcastF64toI64()",
"LegacyF32ToF16()",
"LegacyF16ToF32()",
"f32tof16()",
"f16tof32()",
"LegacyDoubleToFloat()",
"LegacyDoubleToSInt32()",
"LegacyDoubleToUInt32()",