d3d12: Add a blank d3d12_resource_state.h/cpp

This will host some code that's moving and ported to match style
with the rest of the driver, and other code that will be re-written.

Reviewed-by: Bill Kristiansen <billkris@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17688>
This commit is contained in:
Jesse Natalie 2022-07-18 13:20:26 -07:00 committed by Marge Bot
parent 6b07893b31
commit a277dbf1f4
4 changed files with 59 additions and 3 deletions

View File

@ -21,8 +21,8 @@
* IN THE SOFTWARE.
*/
#ifndef D3D12_RESOURCE_STATE_H
#define D3D12_RESOURCE_STATE_H
#ifndef D3D12RESOURCESTATE_H
#define D3D12RESOURCESTATE_H
#include <vector>
#include <assert.h>
@ -30,6 +30,7 @@
#include "util/list.h"
#include "d3d12_common.h"
#include "d3d12_resource_state.h"
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
@ -291,4 +292,4 @@ private:
UINT64 ExecutionId);
};
#endif // D3D12_RESOURCE_STATE_H
#endif // D3D12RESOURCESTATEH

View File

@ -0,0 +1,25 @@
/*
* Copyright © Microsoft Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include "d3d12_resource_state.h"

View File

@ -0,0 +1,29 @@
/*
* Copyright © Microsoft Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef D3D12_RESOURCE_STATE_H
#define D3D12_RESOURCE_STATE_H
#endif // D3D12_RESOURCE_STATE_H

View File

@ -40,6 +40,7 @@ files_libd3d12 = files(
'd3d12_query.cpp',
'd3d12_residency.cpp',
'd3d12_resource.cpp',
'd3d12_resource_state.cpp',
'd3d12_root_signature.cpp',
'd3d12_screen.cpp',
'd3d12_surface.cpp',