[Mesa-dev] [PATCH] virgl: add ARB_shader_clock support

Erik Faye-Lund erik.faye-lund at collabora.com
Mon Aug 6 21:03:00 UTC 2018


Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>


On 06. aug. 2018 22:23, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> ---
>   src/gallium/drivers/virgl/virgl_hw.h     | 1 +
>   src/gallium/drivers/virgl/virgl_screen.c | 3 ++-
>   2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/virgl/virgl_hw.h b/src/gallium/drivers/virgl/virgl_hw.h
> index 02cedcd0dc0..978839ad4fd 100644
> --- a/src/gallium/drivers/virgl/virgl_hw.h
> +++ b/src/gallium/drivers/virgl/virgl_hw.h
> @@ -210,6 +210,7 @@ enum virgl_formats {
>   #define VIRGL_CAP_FB_NO_ATTACH         (1 << 8)
>   #define VIRGL_CAP_ROBUST_BUFFER_ACCESS (1 << 9)
>   #define VIRGL_CAP_TGSI_FBFETCH         (1 << 10)
> +#define VIRGL_CAP_SHADER_CLOCK         (1 << 11)
>   
>   #define VIRGL_BIND_DEPTH_STENCIL (1 << 0)
>   #define VIRGL_BIND_RENDER_TARGET (1 << 1)
> diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c
> index e17d257fab1..421fde5249d 100644
> --- a/src/gallium/drivers/virgl/virgl_screen.c
> +++ b/src/gallium/drivers/virgl/virgl_screen.c
> @@ -231,6 +231,8 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param)
>         return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_ROBUST_BUFFER_ACCESS;
>      case PIPE_CAP_TGSI_FS_FBFETCH:
>         return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_TGSI_FBFETCH;
> +   case PIPE_CAP_TGSI_CLOCK:
> +      return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_SHADER_CLOCK;
>      case PIPE_CAP_TEXTURE_GATHER_SM5:
>      case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT:
>      case PIPE_CAP_FAKE_SW_MSAA:
> @@ -274,7 +276,6 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param)
>      case PIPE_CAP_INT64:
>      case PIPE_CAP_INT64_DIVMOD:
>      case PIPE_CAP_TGSI_TEX_TXF_LZ:
> -   case PIPE_CAP_TGSI_CLOCK:
>      case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE:
>      case PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE:
>      case PIPE_CAP_TGSI_BALLOT:



More information about the mesa-dev mailing list