mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
meta: fix glDrawPixels fallback test, stencil drawing
Remove the check for pixel transfer ops. If any RGB/depth scale/bias is in effect, it'll be applied in the glTexImage step. If drawing stencil pixels we need to disable pixel transfer so that alpha scale/bias are not applied to the stencil data. These issues were spotted by Roland. Fixes Blender performance issues reported in http://bugs.freedesktop.org/show_bug.cgi?id=47375 NOTE: This is a candidate for the 8.0 branch. Tested-by: Barto <mister.freeman@laposte.net> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
a80b7407f3
commit
906febaf8b
1 changed files with 2 additions and 2 deletions
|
|
@ -2281,8 +2281,7 @@ _mesa_meta_DrawPixels(struct gl_context *ctx,
|
|||
* Determine if we can do the glDrawPixels with texture mapping.
|
||||
*/
|
||||
fallback = GL_FALSE;
|
||||
if (ctx->_ImageTransferState ||
|
||||
ctx->Fog.Enabled) {
|
||||
if (ctx->Fog.Enabled) {
|
||||
fallback = GL_TRUE;
|
||||
}
|
||||
|
||||
|
|
@ -2317,6 +2316,7 @@ _mesa_meta_DrawPixels(struct gl_context *ctx,
|
|||
texIntFormat = GL_ALPHA;
|
||||
metaExtraSave = (MESA_META_COLOR_MASK |
|
||||
MESA_META_DEPTH_TEST |
|
||||
MESA_META_PIXEL_TRANSFER |
|
||||
MESA_META_SHADER |
|
||||
MESA_META_STENCIL_TEST);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue