mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
58469620d3
commit
b2f919eaaf
1 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue