[Mesa-dev] [PATCH 02/53] r600: introduce HW shader stage defines

Oded Gabbay oded.gabbay at gmail.com
Mon Nov 30 01:40:42 PST 2015


On Mon, Nov 30, 2015 at 8:20 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> Add a list of defines for the HW stages.
>
> We will use this for GPR calculations amongst other things.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/gallium/drivers/r600/r600_pipe.h | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h
> index bbb55ad..36fa1c9 100644
> --- a/src/gallium/drivers/r600/r600_pipe.h
> +++ b/src/gallium/drivers/r600/r600_pipe.h
> @@ -81,6 +81,17 @@
>   */
>  #define R600_MAX_CONST_BUFFER_SIZE (4096 * sizeof(float[4]))
>
> +/* HW stages */
> +#define R600_HW_STAGE_PS 0
> +#define R600_HW_STAGE_VS 1
> +#define R600_HW_STAGE_GS 2
> +#define R600_HW_STAGE_ES 3
> +#define EG_HW_STAGE_LS 4
> +#define EG_HW_STAGE_HS 5
> +
> +#define R600_NUM_HW_STAGES 4
> +#define EG_NUM_HW_STAGES 6
> +
>  #ifdef PIPE_ARCH_BIG_ENDIAN
>  #define R600_BIG_ENDIAN 1
>  #else
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reviewed-by: Oded Gabbay <oded.gabbay at gmail.com>


More information about the mesa-dev mailing list