The trace driver integration should be done in state tracker, so that it
automatically works for all existing and future pipe drivers, and not
for individual winsyses...

Jose

On Thu, 2009-07-02 at 06:08 -0700, Jakob Bornecrantz wrote:
> Module: Mesa
> Branch: master
> Commit: d1c8a0a30860ab6cd4a50582972fb185766595bd
> URL:    
> http://cgit.freedesktop.org/mesa/mesa/commit/?id=d1c8a0a30860ab6cd4a50582972fb185766595bd
> 
> Author: Jakob Bornecrantz <ja...@vmware.com>
> Date:   Thu Jul  2 15:05:51 2009 +0200
> 
> r300g: Readd trace driver support
> 
> ---
> 
>  src/gallium/winsys/drm/radeon/core/radeon_drm.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/src/gallium/winsys/drm/radeon/core/radeon_drm.c 
> b/src/gallium/winsys/drm/radeon/core/radeon_drm.c
> index 556d3f5..4cad960 100644
> --- a/src/gallium/winsys/drm/radeon/core/radeon_drm.c
> +++ b/src/gallium/winsys/drm/radeon/core/radeon_drm.c
> @@ -29,6 +29,7 @@
>   */
>  
>  #include "radeon_drm.h"
> +#include "trace/tr_drm.h"
>  
>  /* Create a pipe_screen. */
>  struct pipe_screen* radeon_create_screen(struct drm_api* api,
> @@ -130,5 +131,9 @@ struct drm_api drm_api_hooks = {
>  
>  struct drm_api* drm_api_create()
>  {
> +#ifdef DEBUG
> +    return trace_drm_create(&drm_api_hooks);
> +#else
>      return &drm_api_hooks;
> +#endif
>  }
> 
> _______________________________________________
> mesa-commit mailing list
> mesa-com...@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-commit


------------------------------------------------------------------------------
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to