[Mesa-dev] [PATCH] anv: expose depthBiasClamp, it is already set
Kenneth Graunke
kenneth at whitecape.org
Sun Nov 27 07:38:42 UTC 2016
On Tuesday, November 22, 2016 11:46:44 PM PST Ilia Mirkin wrote:
> On Tue, Nov 22, 2016 at 11:03 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> > The gen7/8_cmd_buffer logic already sets the clamp, and it's piped
> > through via the dynamic state.
> >
> > Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> > ---
> >
> > Untested. I don't think there are any VK-CTS tests about this. But reading
> > the code, it all seems to have been piped through already.
>
> I was wrong - dEQP-VK.dynamic_state.rs_state.depth_bias_clamp - it
> passes. Not exactly a thorough test of the functionality, but it's not
> an easy one to do.
>
> >
> > src/intel/vulkan/anv_device.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> > index 6ad5316..9909107 100644
> > --- a/src/intel/vulkan/anv_device.c
> > +++ b/src/intel/vulkan/anv_device.c
> > @@ -414,7 +414,7 @@ void anv_GetPhysicalDeviceFeatures(
> > .multiDrawIndirect = false,
> > .drawIndirectFirstInstance = false,
> > .depthClamp = true,
> > - .depthBiasClamp = false,
> > + .depthBiasClamp = true,
> > .fillModeNonSolid = true,
> > .depthBounds = false,
> > .wideLines = true,
> > --
> > 2.7.3
> >
Looks like it's all hooked up to me.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161126/326fbebb/attachment-0001.sig>
More information about the mesa-dev
mailing list