Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/visual-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
}

# Tests that crash SwiftShader at high-complexity frames
$exclude = @("Mask_AS2", "Mask_AS3", "MMOPackedRender")
$exclude = @("Mask_AS2", "Mask_AS3", "MMOPackedRender", "FiltersExample")
$failed = 0
foreach ($test in $manifest.tests) {
$name = $test.name
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
python Tests/VisualRegression/compare_reference.py
--vulkan-dir Tests/VisualRegression/Output/Captures/vulkan_swiftshader
--threshold 16
--exclude Mask_AS2 Mask_AS3 MMOPackedRender
--exclude Mask_AS2 Mask_AS3 MMOPackedRender FiltersExample

- name: Upload captures on failure
if: failure()
Expand Down
63 changes: 63 additions & 0 deletions 3rdParty/cri/Durango/include/cri_allocator.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#ifndef _CRI_ALLOCATOR_H_INCLUDED
#define _CRI_ALLOCATOR_H_INCLUDED
/****************************************************************************
* *
* CRI Allocator *
* *
* 2006-01-05 written by M.Oshimi *
* *
****************************************************************************/

/****************************************************************************
* Include file
****************************************************************************/
#include <stdio.h>
#include "cri_xpt.h"
#include "cri_heap.h"

/****************************************************************************
* Macro Constants
****************************************************************************/
#if defined(XPT_UNSUPPORT_CPLUSPLUS_THROW)
#define CRI_ALLOCATOR_CPLUSPLUS_THROW
#else
#define CRI_ALLOCATOR_CPLUSPLUS_THROW throw()
#endif

/****************************************************************************
* Class Declaration
****************************************************************************/
#ifdef __cplusplus

class CriAllocator
{
public:
static const CriSint32 DEFAULT_ALIGNMENT = CRIHEAP_DEFAULT_MEM_ALIGN;


static void* CRIAPI operator new(size_t size, CriHeap heap) CRI_ALLOCATOR_CPLUSPLUS_THROW;
static void* CRIAPI operator new(size_t size, CriHeap heap, CriHeapType heap_type) CRI_ALLOCATOR_CPLUSPLUS_THROW;
static void* CRIAPI operator new(size_t size, CriHeap heap, const CriChar8 *name, CriUint32 align=DEFAULT_ALIGNMENT) CRI_ALLOCATOR_CPLUSPLUS_THROW;
static void* CRIAPI operator new(size_t size, CriHeap heap, CriHeapType heap_type, const CriChar8 *name, CriUint32 align=DEFAULT_ALIGNMENT) CRI_ALLOCATOR_CPLUSPLUS_THROW;

static void CRIAPI operator delete(void *p, size_t size);

static void* CRIAPI operator new(size_t size, void *work, CriSint32 wksize) CRI_ALLOCATOR_CPLUSPLUS_THROW;
static void CRIAPI operator delete(void *p, void *work, CriSint32 wksize) CRI_ALLOCATOR_CPLUSPLUS_THROW;
static void* CRIAPI operator new(size_t size, void *work, CriSint32 wksize, CriUint32 align) CRI_ALLOCATOR_CPLUSPLUS_THROW;
static void CRIAPI operator delete(void *p, void *work, CriSint32 wksize, CriUint32 align) CRI_ALLOCATOR_CPLUSPLUS_THROW;

#if !defined(XPT_TGT_BCB)
static void CRIAPI operator delete(void *p, CriHeap heap) CRI_ALLOCATOR_CPLUSPLUS_THROW;
static void CRIAPI operator delete(void *p, CriHeap heap, CriHeapType heap_type) CRI_ALLOCATOR_CPLUSPLUS_THROW;
static void CRIAPI operator delete(void *p, CriHeap heap, const CriChar8 *name, CriUint32 align) CRI_ALLOCATOR_CPLUSPLUS_THROW;
static void CRIAPI operator delete(void *p, CriHeap heap, CriHeapType heap_type, const CriChar8 *name, CriUint32 align) CRI_ALLOCATOR_CPLUSPLUS_THROW;
#endif

static CriSint32 GetWorstExtraSize(CriUint32 align);
};
#endif // _CRI_ALLOCATOR_H_INCLUDED

#endif /* end of __cplusplus */

/* --- end of file --- */
Loading
Loading