anv/pack: Make TextureLODBias a proper 4.8 float
XXX: We need to update the generators so this doesn't get stompped.
This commit is contained in:
@@ -7984,7 +7984,7 @@ struct GEN75_SAMPLER_STATE {
|
||||
#define MAPFILTER_ANISOTROPIC 2
|
||||
#define MAPFILTER_MONO 6
|
||||
uint32_t MinModeFilter;
|
||||
uint32_t TextureLODBias;
|
||||
float TextureLODBias;
|
||||
#define LEGACY 0
|
||||
#define EWAApproximation 1
|
||||
uint32_t AnisotropicAlgorithm;
|
||||
@@ -8048,7 +8048,7 @@ GEN75_SAMPLER_STATE_pack(__gen_user_data *data, void * restrict dst,
|
||||
__gen_field(values->MipModeFilter, 20, 21) |
|
||||
__gen_field(values->MagModeFilter, 17, 19) |
|
||||
__gen_field(values->MinModeFilter, 14, 16) |
|
||||
__gen_field(values->TextureLODBias, 1, 13) |
|
||||
__gen_field(values->TextureLODBias * (1 << 8), 1, 13) |
|
||||
__gen_field(values->AnisotropicAlgorithm, 0, 0) |
|
||||
0;
|
||||
|
||||
|
||||
@@ -6567,7 +6567,7 @@ struct GEN7_SAMPLER_STATE {
|
||||
#define MAPFILTER_ANISOTROPIC 2
|
||||
#define MAPFILTER_MONO 6
|
||||
uint32_t MinModeFilter;
|
||||
uint32_t TextureLODBias;
|
||||
float TextureLODBias;
|
||||
#define LEGACY 0
|
||||
#define EWAApproximation 1
|
||||
uint32_t AnisotropicAlgorithm;
|
||||
@@ -6630,7 +6630,7 @@ GEN7_SAMPLER_STATE_pack(__gen_user_data *data, void * restrict dst,
|
||||
__gen_field(values->MipModeFilter, 20, 21) |
|
||||
__gen_field(values->MagModeFilter, 17, 19) |
|
||||
__gen_field(values->MinModeFilter, 14, 16) |
|
||||
__gen_field(values->TextureLODBias, 1, 13) |
|
||||
__gen_field(values->TextureLODBias * (1 << 8), 1, 13) |
|
||||
__gen_field(values->AnisotropicAlgorithm, 0, 0) |
|
||||
0;
|
||||
|
||||
|
||||
@@ -8599,7 +8599,7 @@ struct GEN8_SAMPLER_STATE {
|
||||
#define MAPFILTER_ANISOTROPIC 2
|
||||
#define MAPFILTER_MONO 6
|
||||
uint32_t MinModeFilter;
|
||||
uint32_t TextureLODBias;
|
||||
float TextureLODBias;
|
||||
#define LEGACY 0
|
||||
#define EWAApproximation 1
|
||||
uint32_t AnisotropicAlgorithm;
|
||||
@@ -8666,7 +8666,7 @@ GEN8_SAMPLER_STATE_pack(__gen_user_data *data, void * restrict dst,
|
||||
__gen_field(values->MipModeFilter, 20, 21) |
|
||||
__gen_field(values->MagModeFilter, 17, 19) |
|
||||
__gen_field(values->MinModeFilter, 14, 16) |
|
||||
__gen_field(values->TextureLODBias, 1, 13) |
|
||||
__gen_field(values->TextureLODBias * (1 << 8), 1, 13) |
|
||||
__gen_field(values->AnisotropicAlgorithm, 0, 0) |
|
||||
0;
|
||||
|
||||
|
||||
@@ -9159,7 +9159,7 @@ struct GEN9_SAMPLER_STATE {
|
||||
#define MAPFILTER_ANISOTROPIC 2
|
||||
#define MAPFILTER_MONO 6
|
||||
uint32_t MinModeFilter;
|
||||
uint32_t TextureLODBias;
|
||||
float TextureLODBias;
|
||||
#define LEGACY 0
|
||||
#define EWAApproximation 1
|
||||
uint32_t AnisotropicAlgorithm;
|
||||
@@ -9232,7 +9232,7 @@ GEN9_SAMPLER_STATE_pack(__gen_user_data *data, void * restrict dst,
|
||||
__gen_field(values->MipModeFilter, 20, 21) |
|
||||
__gen_field(values->MagModeFilter, 17, 19) |
|
||||
__gen_field(values->MinModeFilter, 14, 16) |
|
||||
__gen_field(values->TextureLODBias, 1, 13) |
|
||||
__gen_field(values->TextureLODBias * (1 << 8), 1, 13) |
|
||||
__gen_field(values->AnisotropicAlgorithm, 0, 0) |
|
||||
0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user