shader_recompiler/frontend: fix `IMAGE_SAMPLE_CD` format

* Seen on Dark Souls
This commit is contained in:
Daniel R 2024-08-25 19:53:45 +02:00
parent 977371e7e1
commit 3a8a666df0
No known key found for this signature in database
GPG Key ID: B8ADC8F57BA18DBA
2 changed files with 2 additions and 4 deletions

View File

@ -5,8 +5,6 @@
#include "common/assert.h"
#include "shader_recompiler/frontend/decode.h"
#define MAGIC_ENUM_RANGE_MIN 0
#define MAGIC_ENUM_RANGE_MAX 1515
#include "magic_enum.hpp"
namespace Shader::Gcn {

View File

@ -3655,8 +3655,8 @@ constexpr std::array<InstFormat, 112> InstructionFormatMIMG = {{
{},
{},
// 104 = IMAGE_SAMPLE_CD
{InstClass::VectorMemImgSmp, InstCategory::VectorMemory, 4, 1, ScalarType::Undefined,
ScalarType::Undefined},
{InstClass::VectorMemImgSmp, InstCategory::VectorMemory, 4, 1, ScalarType::Float32,
ScalarType::Float32},
// 105 = IMAGE_SAMPLE_CD_CL
{InstClass::VectorMemImgSmp, InstCategory::VectorMemory, 4, 1, ScalarType::Undefined,
ScalarType::Undefined},