summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ac9d7c3)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
pCurDrawContext->drawId = pContext->dcRing.GetHead();
pCurDrawContext->cleanupState = true;
pCurDrawContext->drawId = pContext->dcRing.GetHead();
pCurDrawContext->cleanupState = true;
// templated backend function tables
extern PFN_BACKEND_FUNC gBackendNullPs[SWR_MULTISAMPLE_TYPE_COUNT];
extern PFN_BACKEND_FUNC gBackendSingleSample[SWR_INPUT_COVERAGE_COUNT][2][2];
extern PFN_BACKEND_FUNC gBackendSampleRateTable[SWR_MULTISAMPLE_TYPE_COUNT][SWR_INPUT_COVERAGE_COUNT][2][2];
// templated backend function tables
extern PFN_BACKEND_FUNC gBackendNullPs[SWR_MULTISAMPLE_TYPE_COUNT];
extern PFN_BACKEND_FUNC gBackendSingleSample[SWR_INPUT_COVERAGE_COUNT][2][2];
extern PFN_BACKEND_FUNC gBackendSampleRateTable[SWR_MULTISAMPLE_TYPE_COUNT][SWR_INPUT_COVERAGE_COUNT][2][2];
void SetupPipeline(DRAW_CONTEXT *pDC)
{
DRAW_STATE* pState = pDC->pState;
void SetupPipeline(DRAW_CONTEXT *pDC)
{
DRAW_STATE* pState = pDC->pState;
pState->rastState.cullMode = SWR_CULLMODE_NONE;
}
pState->rastState.cullMode = SWR_CULLMODE_NONE;
}
int draw = 0;
while (remainingVerts)
{
int draw = 0;
while (remainingVerts)
{
pDC = GetDrawContext(pContext);
pDC->pState->state.rastState.cullMode = oldCullMode;
pDC = GetDrawContext(pContext);
pDC->pState->state.rastState.cullMode = oldCullMode;
AR_API_END(APIDraw, numVertices * numInstances);
}
AR_API_END(APIDraw, numVertices * numInstances);
}
pState->rastState.cullMode = SWR_CULLMODE_NONE;
}
pState->rastState.cullMode = SWR_CULLMODE_NONE;
}
while (remainingIndices)
{
uint32_t numIndicesForDraw = (remainingIndices < maxIndicesPerDraw) ?
while (remainingIndices)
{
uint32_t numIndicesForDraw = (remainingIndices < maxIndicesPerDraw) ?
pDC = GetDrawContext(pContext);
pDC->pState->state.rastState.cullMode = oldCullMode;
pDC = GetDrawContext(pContext);
pDC->pState->state.rastState.cullMode = oldCullMode;
AR_API_END(APIDrawIndexed, numIndices * numInstances);
}
AR_API_END(APIDrawIndexed, numIndices * numInstances);
}
InitBackendFuncTables();
}
InitBackendFuncTables();
}
void SwrGetInterface(SWR_INTERFACE &out_funcs)
{
out_funcs.pfnSwrCreateContext = SwrCreateContext;
void SwrGetInterface(SWR_INTERFACE &out_funcs)
{
out_funcs.pfnSwrCreateContext = SwrCreateContext;
volatile int32_t threadsDone;
SYNC_DESC retireCallback; // Call this func when this DC is retired.
volatile int32_t threadsDone;
SYNC_DESC retireCallback; // Call this func when this DC is retired.
};
static_assert((sizeof(DRAW_CONTEXT) & 63) == 0, "Invalid size for DRAW_CONTEXT");
};
static_assert((sizeof(DRAW_CONTEXT) & 63) == 0, "Invalid size for DRAW_CONTEXT");
uint8_t clipDistanceMask;
};
uint8_t clipDistanceMask;
};
enum SWR_CONSTANT_SOURCE
{
SWR_CONSTANT_SOURCE_CONST_0000,
enum SWR_CONSTANT_SOURCE
{
SWR_CONSTANT_SOURCE_CONST_0000,