rsx: implement pixel size 16.

This commit is contained in:
Zangetsu38 2017-08-19 22:04:11 +02:00 committed by kd-11
parent c85806c422
commit 37bc2b3bb9
1 changed files with 6 additions and 0 deletions

View File

@ -179,6 +179,9 @@ namespace rsx
case 8:
scale_image_fallback_impl<u64, u64>((u64*)dst, (const u64*)src, src_width, src_height, dst_pitch, src_pitch, pixel_size, samples);
break;
case 16:
scale_image_fallback_impl<u128, u128>((u128*)dst, (const u128*)src, src_width, src_height, dst_pitch, src_pitch, pixel_size, samples);
break;
default:
fmt::throw_exception("unsupported pixel size %d" HERE, pixel_size);
}
@ -200,6 +203,9 @@ namespace rsx
case 8:
scale_image_fallback_impl<u64, be_t<u64>>((u64*)dst, (const be_t<u64>*)src, src_width, src_height, dst_pitch, src_pitch, pixel_size, samples);
break;
case 16:
scale_image_fallback_impl<u128, be_t<u128>>((u128*)dst, (const be_t<u128>*)src, src_width, src_height, dst_pitch, src_pitch, pixel_size, samples);
break;
default:
fmt::throw_exception("unsupported pixel size %d" HERE, pixel_size);
}