mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
rsx: Only request attribute interpolation if the GPU requires it and the driver supports it
This commit is contained in:
parent
9c0b2338cf
commit
6756bf7d4b
1 changed files with 4 additions and 1 deletions
|
@ -2156,9 +2156,12 @@ namespace rsx
|
||||||
current_fragment_program.two_sided_lighting = rsx::method_registers.two_side_light_en();
|
current_fragment_program.two_sided_lighting = rsx::method_registers.two_side_light_en();
|
||||||
|
|
||||||
if (method_registers.current_draw_clause.classify_mode() == primitive_class::polygon)
|
if (method_registers.current_draw_clause.classify_mode() == primitive_class::polygon)
|
||||||
|
{
|
||||||
|
if (!backend_config.supports_normalized_barycentrics)
|
||||||
{
|
{
|
||||||
current_fragment_program.ctrl |= RSX_SHADER_CONTROL_ATTRIBUTE_INTERPOLATION;
|
current_fragment_program.ctrl |= RSX_SHADER_CONTROL_ATTRIBUTE_INTERPOLATION;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (method_registers.point_sprite_enabled() &&
|
else if (method_registers.point_sprite_enabled() &&
|
||||||
method_registers.current_draw_clause.primitive == primitive_type::points)
|
method_registers.current_draw_clause.primitive == primitive_type::points)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue