summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_pipe.c
diff options
context:
space:
mode:
authorAxel Davy <axel.davy@ens.fr>2016-06-13 22:28:32 +0200
committerAxel Davy <axel.davy@ens.fr>2016-06-25 10:16:15 +0200
commit59a692916ca251db995050f7fc0bb7b4e6e4780b (patch)
tree1bd5a11a8ac89a04e24b0ed61f39f5f5002fd9fa /src/gallium/drivers/radeonsi/si_pipe.c
parent727a9b24933d384f5440ed4318fb720ed11d6dd1 (diff)
downloadexternal_mesa3d-59a692916ca251db995050f7fc0bb7b4e6e4780b.zip
external_mesa3d-59a692916ca251db995050f7fc0bb7b4e6e4780b.tar.gz
external_mesa3d-59a692916ca251db995050f7fc0bb7b4e6e4780b.tar.bz2
gallium: Add a cap for offset_units_unscaled
D3D9 has a different behaviour for depth bias. For OGL/D3D1X, the depth bias unit is the minimal resolvable value for the depth buffer, which depends on the format (and has different behaviour for float depth buffers). For D3D9, the depth bias unit is 1.0f. Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 3259d5f..37406aa 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -415,6 +415,7 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
case PIPE_CAP_PRIMITIVE_RESTART_FOR_PATCHES:
case PIPE_CAP_TGSI_VOTE:
case PIPE_CAP_MAX_WINDOW_RECTANGLES:
+ case PIPE_CAP_POLYGON_OFFSET_UNITS_UNSCALED:
return 0;
case PIPE_CAP_MAX_SHADER_PATCH_VARYINGS: