[Mesa-dev] [RFC 13/24] nv50/ir: enable early fragment test with explicit user control

Ilia Mirkin imirkin at alum.mit.edu
Wed Apr 13 20:31:44 UTC 2016


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Tue, Apr 12, 2016 at 7:57 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> This feature can be enabled in two ways: as an optimization and by
> explicit user control (with OpenGL 4.2 or ARB_shader_image_load_store).
>
> This makes use of the recent TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL to
> force early fragment tests when needed.
>
> This fixes a bunch of
> dEQP-GLES31.functional.image_load_store.early_fragment_tests.* tests.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> index ba14979..6751879 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> @@ -1052,6 +1052,9 @@ void Source::scanProperty(const struct tgsi_full_property *prop)
>     case TGSI_PROPERTY_NEXT_SHADER:
>        /* Do not need to know the next shader stage. */
>        break;
> +   case TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL:
> +      info->prop.fp.earlyFragTests = prop->u[0].Data;
> +      break;
>     default:
>        INFO("unhandled TGSI property %d\n", prop->Property.PropertyName);
>        break;
> --
> 2.8.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list