Forums - QCOM_alpha_test extension on Adreno 530

2 posts / 0 new
Last post
QCOM_alpha_test extension on Adreno 530
cegbert@microso...
Join Date: 9 Apr 12
Posts: 2
Posted: Tue, 2016-05-10 13:51

I'm investigating replacing our pixel shader discards with alpha tests (through the QCOM_alpha_test extension).  I found that using alpha test gives worse performance than doing a discard on a Galaxy S7 (Adreno 530), which I didn't expect.  Why would that be?  My guess is that the existence of the extension doesn't actually guarantee a dedicated alpha test hardware unit, like I expected.

  • Up0
  • Down0
mhfeldma Moderator
Join Date: 29 Nov 12
Posts: 310
Posted: Fri, 2016-05-13 07:11

The alpha test hardware is supported on the Adreno 530 chip.

Performance improvements using the extension depend on a few things, but mostly how your pixel shader is constructed.

Is the pixel shader your primary bottleneck in the application?

The Alpha test hardware works after the pixel shader has completed.  Therefore comparing performance differences (with using discard) need to account for the addtiional computation done after the discard statement.  (If discard is the final command in the fragment shader, performance should be similar).

It would be good to know how performance is being measured and how much slower the application is when using the alpha test.

 

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.