wined3d-Revert_Surface_Blt: 0001 update format->convert to conv_byte_count: bc75bec270bfdc09c881799b331aabf4d119a271

This commit is contained in:
gloriouseggroll 2018-02-20 21:32:00 -05:00
parent 9f7244a1c6
commit 32b5281e4a

View File

@ -20,7 +20,7 @@ index e90ef042323..aacdb07ad4a 100644
+ /* We want to avoid invalidating the sysmem location for converted
+ * surfaces, since otherwise we'd have to convert the data back when
+ * locking them. */
+ if (dst_texture->flags & WINED3D_TEXTURE_CONVERTED || dst_texture->resource.format->convert
+ if (dst_texture->flags & WINED3D_TEXTURE_CONVERTED || dst_texture->resource.format->conv_byte_count
+ || wined3d_format_get_color_key_conversion(dst_texture, TRUE))
+ {
+ WARN_(d3d_perf)("Converted surface, using CPU blit.\n");