diff options
author | Nicolai Hähnle <[email protected]> | 2016-11-18 20:49:54 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-11-30 09:09:50 +0100 |
commit | 611166b8ed08ce39f835385b8e08e37754edcf7b (patch) | |
tree | 2e25a22d6fa87c50ac39711980ad05d0186e1c82 /src/gallium/drivers/virgl | |
parent | abc887faa108b52f1e622ac8c1a3e30c4f317475 (diff) |
gallium: add PIPE_CAP_TGSI_CAN_READ_OUTPUTS
Drivers that support this benefit by saving one lowering pass in the
GLSL-to-TGSI conversion.
radeonsi already supports this because all outputs are stored in temporary
variables before the export (except for TCS outputs, which have always
been readable in TGSI anyway due to their special semantics).
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index 3d71d7dc935..87c4ce26bf2 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -250,6 +250,7 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_POLYGON_OFFSET_UNITS_UNSCALED: case PIPE_CAP_VIEWPORT_SUBPIXEL_BITS: case PIPE_CAP_TGSI_ARRAY_COMPONENTS: + case PIPE_CAP_TGSI_CAN_READ_OUTPUTS: return 0; case PIPE_CAP_VENDOR_ID: return 0x1af4; |