Lines Matching refs:backendState
2028 SWR_BACKEND_STATE backendState = {0}; in swr_update_derived() local
2030 backendState.numAttributes = ctx->gs->info.base.num_outputs - 1; in swr_update_derived()
2033 backendState.numAttributes = ctx->tes->info.base.num_outputs - 1; in swr_update_derived()
2037 backendState.numAttributes = ctx->vs->info.base.num_outputs - 1; in swr_update_derived()
2039 backendState.numAttributes++; in swr_update_derived()
2040 backendState.swizzleEnable = true; in swr_update_derived()
2041 for (unsigned i = 0; i < sizeof(backendState.numComponents); i++) { in swr_update_derived()
2042 backendState.swizzleMap[i].sourceAttrib = i; in swr_update_derived()
2044 backendState.swizzleMap[ctx->vs->info.base.num_outputs - 1].constantSource = in swr_update_derived()
2046 backendState.swizzleMap[ctx->vs->info.base.num_outputs - 1].componentOverrideMask = 1; in swr_update_derived()
2050 backendState.numAttributes++; in swr_update_derived()
2052 backendState.numAttributes = std::min((size_t)backendState.numAttributes, in swr_update_derived()
2053 sizeof(backendState.numComponents)); in swr_update_derived()
2054 for (unsigned i = 0; i < backendState.numAttributes; i++) in swr_update_derived()
2055 backendState.numComponents[i] = 4; in swr_update_derived()
2056 backendState.constantInterpolationMask = ctx->fs->constantMask | in swr_update_derived()
2058 backendState.pointSpriteTexCoordMask = ctx->fs->pointSpriteMask; in swr_update_derived()
2062 backendState.readRenderTargetArrayIndex = pLastFE->writes_layer; in swr_update_derived()
2063 backendState.readViewportArrayIndex = pLastFE->writes_viewport_index; in swr_update_derived()
2064 backendState.vertexAttribOffset = VERTEX_ATTRIB_START_SLOT; // TODO: optimize in swr_update_derived()
2066 backendState.clipDistanceMask = in swr_update_derived()
2071 backendState.cullDistanceMask = in swr_update_derived()
2075 backendState.vertexClipCullOffset = backendState.vertexAttribOffset - 2; in swr_update_derived()
2077 ctx->api.pfnSwrSetBackendState(ctx->swrContext, &backendState); in swr_update_derived()