r100/r200/r300/r600: enable accel for Copy/DrawPixels without kms
meta ops should work ok without kms.
This commit is contained in:
@@ -2496,11 +2496,10 @@ void r200InitStateFuncs( radeonContextPtr radeon, struct dd_function_table *func
|
||||
functions->DrawBuffer = radeonDrawBuffer;
|
||||
functions->ReadBuffer = radeonReadBuffer;
|
||||
|
||||
if (radeon->radeonScreen->kernel_mm) {
|
||||
functions->CopyPixels = _mesa_meta_CopyPixels;
|
||||
functions->DrawPixels = _mesa_meta_DrawPixels;
|
||||
functions->CopyPixels = _mesa_meta_CopyPixels;
|
||||
functions->DrawPixels = _mesa_meta_DrawPixels;
|
||||
if (radeon->radeonScreen->kernel_mm)
|
||||
functions->ReadPixels = radeonReadPixels;
|
||||
}
|
||||
|
||||
functions->AlphaFunc = r200AlphaFunc;
|
||||
functions->BlendColor = r200BlendColor;
|
||||
|
||||
@@ -2396,11 +2396,10 @@ void r300InitStateFuncs(radeonContextPtr radeon, struct dd_function_table *funct
|
||||
functions->DrawBuffer = radeonDrawBuffer;
|
||||
functions->ReadBuffer = radeonReadBuffer;
|
||||
|
||||
if (radeon->radeonScreen->kernel_mm) {
|
||||
functions->CopyPixels = _mesa_meta_CopyPixels;
|
||||
functions->DrawPixels = _mesa_meta_DrawPixels;
|
||||
functions->CopyPixels = _mesa_meta_CopyPixels;
|
||||
functions->DrawPixels = _mesa_meta_DrawPixels;
|
||||
if (radeon->radeonScreen->kernel_mm)
|
||||
functions->ReadPixels = radeonReadPixels;
|
||||
}
|
||||
}
|
||||
|
||||
void r300InitShaderFunctions(r300ContextPtr r300)
|
||||
|
||||
@@ -1861,10 +1861,9 @@ void r700InitStateFuncs(radeonContextPtr radeon, struct dd_function_table *funct
|
||||
functions->DrawBuffer = radeonDrawBuffer;
|
||||
functions->ReadBuffer = radeonReadBuffer;
|
||||
|
||||
if (radeon->radeonScreen->kernel_mm) {
|
||||
functions->CopyPixels = _mesa_meta_CopyPixels;
|
||||
functions->DrawPixels = _mesa_meta_DrawPixels;
|
||||
functions->CopyPixels = _mesa_meta_CopyPixels;
|
||||
functions->DrawPixels = _mesa_meta_DrawPixels;
|
||||
if (radeon->radeonScreen->kernel_mm)
|
||||
functions->ReadPixels = radeonReadPixels;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2249,11 +2249,10 @@ void radeonInitStateFuncs( GLcontext *ctx , GLboolean dri2 )
|
||||
|
||||
ctx->Driver.DrawBuffer = radeonDrawBuffer;
|
||||
ctx->Driver.ReadBuffer = radeonReadBuffer;
|
||||
if (dri2) {
|
||||
ctx->Driver.CopyPixels = _mesa_meta_CopyPixels;
|
||||
ctx->Driver.DrawPixels = _mesa_meta_DrawPixels;
|
||||
ctx->Driver.CopyPixels = _mesa_meta_CopyPixels;
|
||||
ctx->Driver.DrawPixels = _mesa_meta_DrawPixels;
|
||||
if (dri2)
|
||||
ctx->Driver.ReadPixels = radeonReadPixels;
|
||||
}
|
||||
|
||||
ctx->Driver.AlphaFunc = radeonAlphaFunc;
|
||||
ctx->Driver.BlendEquationSeparate = radeonBlendEquationSeparate;
|
||||
|
||||
Reference in New Issue
Block a user