Chad Versace <chad.vers...@linux.intel.com> writes: >> On Tue, Apr 29, 2014 at 4:34 PM, Eric Anholt <e...@anholt.net> wrote: > >> > - intel_region_release(&intelBuffer->region); >> > + drm_intel_bo_unreference(&intelBuffer->bo); >> > free(intelBuffer); > > This hunk passes garbage to drm_intel_bo_unreference(). Here's the GCC > warning. > > intel_screen.c: In function 'intelReleaseBuffer': > intel_screen.c:1428:4: warning: passing argument 1 of > 'drm_intel_bo_unreference' from incompatible pointer type [enabled by default] > drm_intel_bo_unreference(&intelBuffer->bo); > ^ > In file included from brw_context.h:51:0, > from intel_batchbuffer.h:6, > from intel_screen.c:95: > /usr/include/libdrm/intel_bufmgr.h:123:6: note: expected 'struct > drm_intel_bo *' but argument is of type 'struct drm_intel_bo **' > void drm_intel_bo_unreference(drm_intel_bo *bo); > > Fix that and this patch is > Reviewed-by: Chad Versace <chad.vers...@linux.intel.com>
Thanks. I have a really weird problem where (as far as I've found), 2 files don't produce compiler warnings for me (intel_mipmap_tree.c and intel_screen.c). I have no idea what's going on with it, and I've prodded at a bunch of command lines trying to figure it out.
pgp8YHlPDm2r3.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev