1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[d3d9] Hook up auto gen mip filter

This commit is contained in:
Joshua Ashton 2020-05-27 09:09:58 +01:00 committed by Philip Rebohle
parent 7cd46e72e9
commit c03eaf2de7

View File

@ -4207,9 +4207,10 @@ namespace dxvk {
void D3D9DeviceEx::EmitGenerateMips(
D3D9CommonTexture* pResource) {
EmitCs([
cImageView = pResource->GetSampleView(false)
cImageView = pResource->GetSampleView(false),
cFilter = pResource->GetMipFilter()
] (DxvkContext* ctx) {
ctx->generateMipmaps(cImageView, VK_FILTER_LINEAR);
ctx->generateMipmaps(cImageView, DecodeFilter(cFilter));
});
}