gallium: Permit surface_copy and surface_fill to be NULL.

Uf. Lots of files touched. Would people with working vega, xorg, dri1, etc.
please make sure you are not broken, and fix yourself up if you are.

There were only two or three places where the code did not have painful
fallbacks, so I would advise st maintainers to find less painful workarounds,
or consider overhauling util_surface_copy and util_surface_fill.

Per ymanton, darktama, and Dr_Jakob's suggestions, clear has been left as-is.

I will not add PIPE_CAP_BLITTER unless it is deemed necessary.
This commit is contained in:
Corbin Simpson
2009-10-17 21:32:56 -07:00
parent bfd877e470
commit bb567357bc
14 changed files with 156 additions and 54 deletions

View File

@@ -1546,7 +1546,8 @@ st_copy_texsubimage(GLcontext *ctx,
if (ctx->_ImageTransferState == 0x0) {
if (matching_base_formats &&
if (pipe->surface_copy &&
matching_base_formats &&
src_format == dest_format &&
!do_flip)
{