[Mesa-dev] [PATCH v2 02/11] r600g: Move R600_BIG_ENDIAN to r600_pipe_common.h

Marek Olšák maraeo at gmail.com
Fri Apr 15 23:11:15 UTC 2016


For patches 1-2:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Feel free to push those two.

Marek

On Thu, Apr 14, 2016 at 2:18 PM, Oded Gabbay <oded.gabbay at gmail.com> wrote:
> I need to do this so I could use R600_BIG_ENDIAN in files which include
> r600_pipe_common.h but not r600_pipe.h
>
> Signed-off-by: Oded Gabbay <oded.gabbay at gmail.com>
> ---
>  src/gallium/drivers/r600/r600_pipe.h          | 6 ------
>  src/gallium/drivers/radeon/r600_pipe_common.h | 6 ++++++
>  2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h
> index 6c2a48c..7793859 100644
> --- a/src/gallium/drivers/r600/r600_pipe.h
> +++ b/src/gallium/drivers/r600/r600_pipe.h
> @@ -92,12 +92,6 @@
>  #define R600_NUM_HW_STAGES 4
>  #define EG_NUM_HW_STAGES 6
>
> -#ifdef PIPE_ARCH_BIG_ENDIAN
> -#define R600_BIG_ENDIAN 1
> -#else
> -#define R600_BIG_ENDIAN 0
> -#endif
> -
>  struct r600_context;
>  struct r600_bytecode;
>  union  r600_shader_key;
> diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h
> index a6abe09..85190a6 100644
> --- a/src/gallium/drivers/radeon/r600_pipe_common.h
> +++ b/src/gallium/drivers/radeon/r600_pipe_common.h
> @@ -99,6 +99,12 @@
>  #define R600_MAP_BUFFER_ALIGNMENT 64
>  #define R600_MAX_VIEWPORTS        16
>
> +#ifdef PIPE_ARCH_BIG_ENDIAN
> +#define R600_BIG_ENDIAN 1
> +#else
> +#define R600_BIG_ENDIAN 0
> +#endif
> +
>  struct r600_common_context;
>  struct r600_perfcounters;
>  struct tgsi_shader_info;
> --
> 2.5.5
>


More information about the mesa-dev mailing list