From b78e184c51b5171c22c421f3c07326985ecf425d Mon Sep 17 00:00:00 2001 From: xebra Date: Sat, 7 Jan 2017 01:19:09 +0900 Subject: [PATCH] [spline/bezier]Add some variables in gpu state cache for hardware tessellation. --- GPU/GPUState.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/GPU/GPUState.h b/GPU/GPUState.h index 5d4c3f006e..826dc84041 100644 --- a/GPU/GPUState.h +++ b/GPU/GPUState.h @@ -395,6 +395,7 @@ struct GPUgstate { bool isSkinningEnabled() const { return ((vertType & GE_VTYPE_WEIGHT_MASK) != GE_VTYPE_WEIGHT_NONE); } GEPatchPrimType getPatchPrimitiveType() const { return static_cast(patchprimitive & 3); } + bool isPatchNormalsReversed() const { return patchfacing & 1; } // Transfers u32 getTransferSrcAddress() const { return (transfersrc & 0xFFFFF0) | ((transfersrcw & 0xFF0000) << 8); } @@ -502,6 +503,14 @@ struct GPUStateCache { UVScale uv; + bool bezier; + bool spline; + int bezier_count_u; + int spline_count_u; + int spline_count_v; + int spline_type_u; + int spline_type_v; + bool bgraTexture; bool needShaderTexClamp; bool allowShaderBlend;