nv2a: Force GL surface transfer on surface address or pitch changes

This commit is contained in:
Jannik Vogel 2018-10-31 18:41:21 +01:00 committed by mborgerson
parent 781a73e118
commit e3d0803843
1 changed files with 5 additions and 0 deletions

View File

@ -738,16 +738,21 @@ static void pgraph_method(NV2AState *d,
GET_MASK(parameter, NV097_SET_SURFACE_PITCH_COLOR);
pg->surface_zeta.pitch =
GET_MASK(parameter, NV097_SET_SURFACE_PITCH_ZETA);
pg->surface_color.buffer_dirty = true;
pg->surface_zeta.buffer_dirty = true;
break;
case NV097_SET_SURFACE_COLOR_OFFSET:
pgraph_update_surface(d, false, true, true);
pg->surface_color.offset = parameter;
pg->surface_color.buffer_dirty = true;
break;
case NV097_SET_SURFACE_ZETA_OFFSET:
pgraph_update_surface(d, false, true, true);
pg->surface_zeta.offset = parameter;
pg->surface_zeta.buffer_dirty = true;
break;
case NV097_SET_COMBINER_ALPHA_ICW ...