• Show log

    Commit

  • Hash : cd10ad46
    Author : Alexey Knyazev
    Date : 2024-09-30T00:00:00

    Metal: Rework allowSamplerCompareGradient feature
    
    * AMD drivers may fail when a sample_compare function is
      used with explicit derivatives. To avoid such failures,
      the effective level is computed from the texture size,
      passed derivatives, and texture coordinates, if needed.
    
      The level value is then used for sample_compare instead
      of the explicit derivatives.
    
    * Apple2 GPUs do not support setting texture sampler compare state
      via Metal API. As a result, all sample_compare functions including
      those without LOD options do not work on Apple2 GPUs. This feature
      was attempting to incorrectly emulate a subset of sample_compare
      functions with a hard-coded compare state.
    
      There are no plans to support shadow samplers on Apple2 GPUs,
      as it would require non-trivial emulation, so this feature is
      no longer relevant for that platform.
    
    * Metal on macOS 10.15 only supports constant zero as
      the level parameter for sample_compare functions.
    
      Ignoring the passed derivatives and using zero LOD on old OS
      versions is a better fallback than dropping the derivatives
      altogether because many applications use the derivatives to
      set the level to zero anyway.
    
    Bug: angleproject:365066518
    Bug: angleproject:368059227
    Change-Id: I4028421b785ae49328b72658e0a9783275461779
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5903970
    Reviewed-by: Geoff Lang <geofflang@chromium.org>
    Commit-Queue: Alexey Knyazev <lexa.knyazev@gmail.com>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/angle.git
    Git SSH git@git.kmx.io:kc3-lang/angle.git
    Public access ? public
    Description

    A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

    Homepage

    Github

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags