[GPU] Up to 7x7 resolution scaling

This commit is contained in:
Triang3l
2022-07-17 20:41:50 +03:00
parent e8652e544a
commit 14fdf4b270
106 changed files with 38342 additions and 37501 deletions

View File

@@ -39,7 +39,7 @@ xesl_entry_inputs_end_code_begin_compute
XeEdramOffsetInts(
xesl_uint2(pixel_index.x,
max(pixel_index.y,
uint(resolve_info.duplicate_second_host_pixel.y))) +
resolve_info.half_pixel_offset_fill_source.y)) +
resolve_info.edram_offset_scaled,
resolve_info.edram_base_tiles, resolve_info.edram_pitch_tiles,
resolve_info.edram_msaa_samples, false, 1u,
@@ -50,7 +50,15 @@ xesl_entry_inputs_end_code_begin_compute
xesl_typedStorageBufferLoad(xe_resolve_edram, source_address_int4s);
xesl_uint4 pixels_23 =
xesl_typedStorageBufferLoad(xe_resolve_edram, source_address_int4s + 1u);
if (resolve_info.duplicate_second_host_pixel.x && pixel_index.x == 0u) {
xesl_dont_flatten
if (pixel_index.x == 0u &&
resolve_info.half_pixel_offset_fill_source.x != 0u) {
if (resolve_info.half_pixel_offset_fill_source.x >= 2u) {
if (resolve_info.half_pixel_offset_fill_source.x >= 3u) {
pixels_23.xy = pixels_23.zw;
}
pixels_01.zw = pixels_23.xy;
}
pixels_01.xy = pixels_01.zw;
}
XeResolveSwap4PixelsRedBlue64bpp(resolve_info, pixels_01, pixels_23);