Lines Matching refs:compileState

87       RENDER_TARGET_BLEND_COMPILE_STATE &compileState =  in swr_create_blend_state()  local
88 state->compileState[target]; in swr_create_blend_state()
91 memcpy(&compileState, in swr_create_blend_state()
92 &state->compileState[0], in swr_create_blend_state()
97 compileState.blendEnable = rt_blend->blend_enable; in swr_create_blend_state()
98 if (compileState.blendEnable) { in swr_create_blend_state()
99 compileState.sourceAlphaBlendFactor = in swr_create_blend_state()
101 compileState.destAlphaBlendFactor = in swr_create_blend_state()
103 compileState.sourceBlendFactor = in swr_create_blend_state()
105 compileState.destBlendFactor = in swr_create_blend_state()
108 compileState.colorBlendFunc = in swr_create_blend_state()
110 compileState.alphaBlendFunc = in swr_create_blend_state()
113 compileState.logicOpEnable = state->pipe.logicop_enable; in swr_create_blend_state()
114 if (compileState.logicOpEnable) { in swr_create_blend_state()
115 compileState.logicOpFunc = in swr_create_blend_state()
129 compileState.blendEnable = false; in swr_create_blend_state()
1926 BLEND_COMPILE_STATE compileState; in swr_update_derived() local
1927 memset(&compileState, 0, sizeof(compileState)); in swr_update_derived()
1928 compileState.format = colorBuffer->swr.format; in swr_update_derived()
1929 memcpy(&compileState.blendState, in swr_update_derived()
1930 &ctx->blend->compileState[target], in swr_update_derived()
1931 sizeof(compileState.blendState)); in swr_update_derived()
1933 const SWR_FORMAT_INFO& info = GetFormatInfo(compileState.format); in swr_update_derived()
1934 if (compileState.blendState.logicOpEnable && in swr_update_derived()
1936 compileState.blendState.logicOpEnable = false; in swr_update_derived()
1940 compileState.blendState.blendEnable = false; in swr_update_derived()
1942 if (compileState.blendState.blendEnable == false && in swr_update_derived()
1943 compileState.blendState.logicOpEnable == false && in swr_update_derived()
1949 compileState.desc.alphaTestEnable = in swr_update_derived()
1951 compileState.desc.independentAlphaBlendEnable = in swr_update_derived()
1952 (compileState.blendState.sourceBlendFactor != in swr_update_derived()
1953 compileState.blendState.sourceAlphaBlendFactor) || in swr_update_derived()
1954 (compileState.blendState.destBlendFactor != in swr_update_derived()
1955 compileState.blendState.destAlphaBlendFactor) || in swr_update_derived()
1956 (compileState.blendState.colorBlendFunc != in swr_update_derived()
1957 compileState.blendState.alphaBlendFunc); in swr_update_derived()
1958 compileState.desc.alphaToCoverageEnable = in swr_update_derived()
1960 compileState.desc.sampleMaskEnable = (blendState.sampleMask != 0); in swr_update_derived()
1961 compileState.desc.numSamples = fb->samples; in swr_update_derived()
1963 compileState.alphaTestFunction = in swr_update_derived()
1965 compileState.alphaTestFormat = ALPHA_TEST_FLOAT32; // xxx in swr_update_derived()
1967 compileState.Canonicalize(); in swr_update_derived()
1970 auto search = ctx->blendJIT->find(compileState); in swr_update_derived()
1975 func = JitCompileBlend(hJitMgr, compileState); in swr_update_derived()
1979 ctx->blendJIT->insert(std::make_pair(compileState, func)); in swr_update_derived()