[Mesa-dev] [PATCH 4/6] radeonsi: Depth/stencil fixes.

Marek Olšák maraeo at gmail.com
Thu Nov 22 10:20:42 PST 2012


On Thu, Nov 22, 2012 at 6:57 PM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Adapted from r600g commit 018e3f75d69490598d61059ece56d379867f3995.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
>  src/gallium/drivers/radeonsi/r600_resource.h |    3 ++-
>  src/gallium/drivers/radeonsi/r600_texture.c  |   26 +++++++++++++++++++-------
>  2 files changed, 21 insertions(+), 8 deletions(-)
>
> diff --git a/src/gallium/drivers/radeonsi/r600_resource.h b/src/gallium/drivers/radeonsi/r600_resource.h
> index be11b5d..8b44034 100644
> --- a/src/gallium/drivers/radeonsi/r600_resource.h
> +++ b/src/gallium/drivers/radeonsi/r600_resource.h
> @@ -26,7 +26,8 @@
>  #include "util/u_transfer.h"
>
>  /* flag to indicate a resource is to be used as a transfer so should not be tiled */
> -#define R600_RESOURCE_FLAG_TRANSFER     PIPE_RESOURCE_FLAG_DRV_PRIV
> +#define R600_RESOURCE_FLAG_TRANSFER            PIPE_RESOURCE_FLAG_DRV_PRIV
> +#define R600_RESOURCE_FLAG_FLUSHED_DEPTH       (PIPE_RESOURCE_FLAG_DRV_PRIV << 1)
>
>  /* Texture transfer. */
>  struct r600_transfer {
> diff --git a/src/gallium/drivers/radeonsi/r600_texture.c b/src/gallium/drivers/radeonsi/r600_texture.c
> index 183827b..3050be7 100644
> --- a/src/gallium/drivers/radeonsi/r600_texture.c
> +++ b/src/gallium/drivers/radeonsi/r600_texture.c
> @@ -75,8 +75,16 @@ static unsigned r600_texture_get_offset(struct r600_resource_texture *rtex,
>
>  static int r600_init_surface(struct radeon_surface *surface,
>                              const struct pipe_resource *ptex,
> -                            unsigned array_mode, bool is_transfer)
> +                            unsigned array_mode,
> +                            bool is_transfer, bool is_flushed_depth)

I don't think you need 2 separate flags. r600g now has only one flag:
is_flushed_depth.

Marek


More information about the mesa-dev mailing list