d3d10umd: Use pipe_resource_usage enum in translate_resource_usage()

This should fix a build error with MSVC

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11461
Fixes: 40785d9a52 ("gallium: properly type pipe_resource.usage with the enum")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Max Ramanouski <max8rr8@gmail.com>
Reviewed-by: Jose Fonseca <jose.fonseca@broadcom.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30172>
This commit is contained in:
Echo J 2024-07-13 12:33:03 +03:00 committed by Marge Bot
parent 58469620d3
commit b2f919eaaf

View file

@ -65,10 +65,10 @@ CalcPrivateResourceSize(D3D10DDI_HDEVICE hDevice,
}
static unsigned
translate_resource_usage( unsigned usage )
static pipe_resource_usage
translate_resource_usage(UINT usage)
{
unsigned resource_usage = 0;
pipe_resource_usage resource_usage = PIPE_USAGE_DEFAULT;
switch (usage) {
case D3D10_DDI_USAGE_DEFAULT: