diff options
author | [email protected] <[email protected]> | 2018-06-04 10:25:20 -0700 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-06-05 14:29:00 +1000 |
commit | a7b74a77fa63efe6d6462ff4f201bea03fa23a33 (patch) | |
tree | 51ed12d4941f6724e24e1aaf842f529fe13beca9 /src/gallium/drivers/virgl/virgl_hw.h | |
parent | 6ce94a50bbe2bfc0f5dfb58d39f5ddfece7a3320 (diff) |
virgl: use bits in caps set v2
Let's add another field to caps v2, that can help report boolean
values.
Suggested-by: Gert Wollny <[email protected]>
Suggested-by: Dave Airlie <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_hw.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_hw.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_hw.h b/src/gallium/drivers/virgl/virgl_hw.h index a2c70bf86b6..ee58520f9bb 100644 --- a/src/gallium/drivers/virgl/virgl_hw.h +++ b/src/gallium/drivers/virgl/virgl_hw.h @@ -197,6 +197,10 @@ enum virgl_formats { VIRGL_FORMAT_MAX, }; +/* These are used by the capability_bits field in virgl_caps_v2. */ +#define VIRGL_CAP_NONE 0 +#define VIRGL_CAP_TGSI_INVARIANT (1 << 0) + #define VIRGL_BIND_DEPTH_STENCIL (1 << 0) #define VIRGL_BIND_RENDER_TARGET (1 << 1) #define VIRGL_BIND_SAMPLER_VIEW (1 << 3) @@ -293,6 +297,7 @@ struct virgl_caps_v2 { uint32_t texture_buffer_offset_alignment; uint32_t uniform_buffer_offset_alignment; uint32_t shader_buffer_offset_alignment; + uint32_t capability_bits; }; union virgl_caps { |