diff options
author | Józef Kucia <joseph.kucia@gmail.com> | 2016-07-19 13:07:24 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2016-07-20 12:45:31 +0200 |
commit | 3cd28fe3de203934f2bab33cce7a91da499c7376 (patch) | |
tree | 47b3358eebd90ca4cfb6ad40b79e688d892eecfd /src/gallium/drivers/r300 | |
parent | 3c78d89692a533879efa64f778712dfd537bd105 (diff) | |
download | external_mesa3d-3cd28fe3de203934f2bab33cce7a91da499c7376.zip external_mesa3d-3cd28fe3de203934f2bab33cce7a91da499c7376.tar.gz external_mesa3d-3cd28fe3de203934f2bab33cce7a91da499c7376.tar.bz2 |
gallium: add a cap for VIEWPORT_SUBPIXEL_BITS (v2)
This allows Gallium drivers to advertise the subpixel precision
for floating point viewports bounds.
v2:
- Set ViewportSubpixelBits in st_init_limits.
Signed-off-by: Józef Kucia <joseph.kucia@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index d47b70d..7d2ea4a 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -221,6 +221,7 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_VOTE: case PIPE_CAP_MAX_WINDOW_RECTANGLES: case PIPE_CAP_POLYGON_OFFSET_UNITS_UNSCALED: + case PIPE_CAP_VIEWPORT_SUBPIXEL_BITS: return 0; /* SWTCL-only features. */ |