anv: Add layer with work-around for Doom 64 texture corruption

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7817
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19502>
This commit is contained in:
Sviatoslav Peleshko
2022-11-03 01:41:53 +02:00
committed by Marge Bot
parent 28ee90bc7f
commit c2acd9f76a
4 changed files with 152 additions and 0 deletions

View File

@@ -60,6 +60,7 @@
#include "util/hash_table.h"
#include "util/list.h"
#include "util/perf/u_trace.h"
#include "util/set.h"
#include "util/sparse_array.h"
#include "util/u_atomic.h"
#include "util/u_vector.h"
@@ -1202,6 +1203,13 @@ struct anv_device {
struct anv_bo * workaround_bo;
struct anv_address workaround_address;
/**
* Workarounds for game bugs.
*/
struct {
struct set * doom64_images;
} workarounds;
struct anv_bo * trivial_batch_bo;
struct anv_state null_surface_state;