ir3: Use common shading rate lookup table
This should be identical to the old one. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36892>
This commit is contained in:
@@ -5,18 +5,7 @@
|
||||
|
||||
#include "compiler/nir/nir_builder.h"
|
||||
#include "ir3_nir.h"
|
||||
|
||||
/* Values written in VS/GS to gl_PrimitiveShadingRateEXT have to
|
||||
* be translated into HW internal representation.
|
||||
*/
|
||||
static const uint32_t vk_to_hw_shading_rate_lut[] = {
|
||||
0, 4, 8, 11, 1, 5, 9, 11, 2, 6, 10, 11, 11, 11, 11, 11};
|
||||
|
||||
/* Values read from gl_ShadingRateEXT in FS have to be translated from
|
||||
* HW representation.
|
||||
*/
|
||||
static const uint32_t hw_to_vk_shading_rate_lut[] = {
|
||||
0, 4, 8, 11, 1, 5, 9, 11, 2, 6, 10, 11, 11, 11, 11, 11};
|
||||
#include "common/freedreno_vrs.h"
|
||||
|
||||
static nir_deref_instr *
|
||||
create_lut(nir_builder *b, const uint32_t *lut, uint32_t lut_size,
|
||||
|
||||
Reference in New Issue
Block a user