Lines Matching refs:backendState
1772 SWR_BACKEND_STATE backendState = {0}; in swr_update_derived() local
1774 backendState.numAttributes = ctx->gs->info.base.num_outputs - 1; in swr_update_derived()
1776 backendState.numAttributes = ctx->vs->info.base.num_outputs - 1; in swr_update_derived()
1778 backendState.numAttributes++; in swr_update_derived()
1779 backendState.swizzleEnable = true; in swr_update_derived()
1780 for (unsigned i = 0; i < sizeof(backendState.numComponents); i++) { in swr_update_derived()
1781 backendState.swizzleMap[i].sourceAttrib = i; in swr_update_derived()
1783 backendState.swizzleMap[ctx->vs->info.base.num_outputs - 1].constantSource = in swr_update_derived()
1785 backendState.swizzleMap[ctx->vs->info.base.num_outputs - 1].componentOverrideMask = 1; in swr_update_derived()
1789 backendState.numAttributes++; in swr_update_derived()
1791 backendState.numAttributes = std::min((size_t)backendState.numAttributes, in swr_update_derived()
1792 sizeof(backendState.numComponents)); in swr_update_derived()
1793 for (unsigned i = 0; i < backendState.numAttributes; i++) in swr_update_derived()
1794 backendState.numComponents[i] = 4; in swr_update_derived()
1795 backendState.constantInterpolationMask = ctx->fs->constantMask | in swr_update_derived()
1797 backendState.pointSpriteTexCoordMask = ctx->fs->pointSpriteMask; in swr_update_derived()
1803 backendState.readRenderTargetArrayIndex = pLastFE->writes_layer; in swr_update_derived()
1804 backendState.readViewportArrayIndex = pLastFE->writes_viewport_index; in swr_update_derived()
1805 backendState.vertexAttribOffset = VERTEX_ATTRIB_START_SLOT; // TODO: optimize in swr_update_derived()
1807 backendState.clipDistanceMask = in swr_update_derived()
1812 backendState.cullDistanceMask = in swr_update_derived()
1816 backendState.vertexClipCullOffset = backendState.vertexAttribOffset - 2; in swr_update_derived()
1818 ctx->api.pfnSwrSetBackendState(ctx->swrContext, &backendState); in swr_update_derived()