rsx: Propagate raster type of fbo sourced data throughout the pipeline.

- Tracks which kind of raster was done (Z-ordered vs linear) throughout the application.
- This allows to identify if data is in the expected format or not.
This commit is contained in:
kd-11 2020-08-01 14:27:13 +03:00 committed by kd-11
parent 107129f95a
commit 4df933275b
14 changed files with 73 additions and 25 deletions

View file

@ -1119,10 +1119,10 @@ namespace rsx
u32 minimum_color_pitch = 64u;
u32 minimum_zeta_pitch = 64u;
switch (const auto mode = rsx::method_registers.surface_type())
switch (layout.raster_type = rsx::method_registers.surface_type())
{
default:
rsx_log.error("Unknown raster mode 0x%x", static_cast<u32>(mode));
rsx_log.error("Unknown raster mode 0x%x", static_cast<u32>(layout.raster_type));
[[fallthrough]];
case rsx::surface_raster_type::linear:
break;