X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fdrivers%2Fdri%2Fi965%2Fintel_tex_copy.c;h=4d8c82e05691a159a62be0bcdfe5e1f9fb277e9f;hb=b4c02253c4e1a7bc5a7a6369045210932f5de605;hp=d55539a2578e3641b2f56246c77671b56ef43dee;hpb=2f28a0dc23165123cf1e8b5942acad37878edd8a;p=mesa.git diff --git a/src/mesa/drivers/dri/i965/intel_tex_copy.c b/src/mesa/drivers/dri/i965/intel_tex_copy.c index d55539a2578..4d8c82e0569 100644 --- a/src/mesa/drivers/dri/i965/intel_tex_copy.c +++ b/src/mesa/drivers/dri/i965/intel_tex_copy.c @@ -29,6 +29,7 @@ #include "main/enums.h" #include "main/image.h" #include "main/teximage.h" +#include "main/texobj.h" #include "main/texstate.h" #include "main/fbobject.h" @@ -70,7 +71,7 @@ intel_copy_texsubimage(struct brw_context *brw, if (!intelImage->mt || !irb || !irb->mt) { if (unlikely(INTEL_DEBUG & DEBUG_PERF)) fprintf(stderr, "%s fail %p %p (0x%08x)\n", - __FUNCTION__, intelImage->mt, irb, internalFormat); + __func__, intelImage->mt, irb, internalFormat); return false; } @@ -120,7 +121,7 @@ intelCopyTexSubImage(struct gl_context *ctx, GLuint dims, } /* Finally, fall back to meta. This will likely be slow. */ - perf_debug("%s - fallback to swrast\n", __FUNCTION__); + perf_debug("%s - fallback to swrast\n", __func__); _mesa_meta_CopyTexSubImage(ctx, dims, texImage, xoffset, yoffset, slice, rb, x, y, width, height);