mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 16:01:42 +12:00
rsx: Fix alpha ref
- The alpha ref register is compared directly to the ROP output register in realhw - alpha ref content must match bit-width of ROP register, which means fp16 values are possible
This commit is contained in:
parent
8e2b2bc179
commit
a1b6415c5a
4 changed files with 72 additions and 7 deletions
|
@ -742,7 +742,7 @@ namespace rsx
|
|||
{
|
||||
//TODO: Properly support alpha-to-coverage and alpha-to-one behavior in shaders
|
||||
auto fragment_alpha_func = rsx::method_registers.alpha_func();
|
||||
auto alpha_ref = rsx::method_registers.alpha_ref() / 255.f;
|
||||
auto alpha_ref = rsx::method_registers.alpha_ref();
|
||||
auto rop_control = rsx::method_registers.alpha_test_enabled()? 1u : 0u;
|
||||
|
||||
if (rsx::method_registers.msaa_alpha_to_coverage_enabled() && !backend_config.supports_hw_a2c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue