[Mesa-dev] [PATCH] tgsi_build: fix order of arguments for ind register build

Brian Paul brianp at vmware.com
Tue Aug 13 06:53:00 PDT 2013


On 08/12/2013 06:14 PM, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This was broken when arrayid was added.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>   src/gallium/auxiliary/tgsi/tgsi_build.c |  2 +-
>   src/gallium/renderer/virgl_hw.h         | 39 +++++++++++++++++++++++++++++++++
>   2 files changed, 40 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c
> index 626faad..9c00cb6 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_build.c
> +++ b/src/gallium/auxiliary/tgsi/tgsi_build.c
> @@ -875,8 +875,8 @@ static struct tgsi_ind_register
>   tgsi_build_ind_register(
>      unsigned file,
>      unsigned swizzle,
> -   unsigned arrayid,
>      int index,
> +   unsigned arrayid,
>      struct tgsi_instruction *instruction,
>      struct tgsi_header *header )
>   {

For that part, Reviewed-by: Brian Paul <brianp at vmware.com>

The rest of this patch below is unrelated afaict.

-Brian

> diff --git a/src/gallium/renderer/virgl_hw.h b/src/gallium/renderer/virgl_hw.h
> index 2a8be61..71989cc 100644
> --- a/src/gallium/renderer/virgl_hw.h
> +++ b/src/gallium/renderer/virgl_hw.h
> @@ -276,4 +276,43 @@ enum virgl_formats {
>      VIRGL_FORMAT_MAX,
>   };
>
> +struct virgl_caps_bool_set1 {
> +        unsigned indep_blend_enable:1;
> +        unsigned indep_blend_func:1;
> +        unsigned cube_map_array:1;
> +        unsigned shader_stencil_export:1;
> +        unsigned conditional_render:1;
> +        unsigned start_instance:1;
> +        unsigned primitive_restart:1;
> +        unsigned blend_eq_sep:1;
> +        unsigned instanceid:1;
> +        unsigned vertex_element_instance_divisor:1;
> +        unsigned seamless_cube_map:1;
> +        unsigned occlusion_query:1;
> +        unsigned timer_query:1;
> +        unsigned streamout_pause_resume:1;
> +};
> +
> +/* endless expansion capabilites - current gallium has 252 formats */
> +struct virgl_supported_format_mask {
> +        uint32_t bitmask[16];
> +};
> +/* capabilities set 2 - version 1 - 32-bit and float values */
> +struct virgl_caps_v1 {
> +        struct virgl_caps_bool_set1 bset;
> +        uint32_t glsl_level;
> +        uint32_t max_texture_array_layers;
> +        uint32_t max_streamout_buffers;
> +        uint32_t max_dual_source_render_targets;
> +        uint32_t max_render_targets;
> +        struct virgl_supported_format_mask sampler;
> +        struct virgl_supported_format_mask fb;
> +        struct virgl_supported_format_mask depthstencil;
> +        struct virgl_supported_format_mask vertexbuffer;
> +};
> +
> +union virgl_caps {
> +        uint32_t max_version;
> +        struct virgl_caps_v1 v1;
> +};
>   #endif
>



More information about the mesa-dev mailing list