mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
rsx: Fix shader compilation when texture ops are referenced
This commit is contained in:
parent
d77a78cdf1
commit
436ef1cff6
@ -84,7 +84,7 @@ float _texcoord_xform(const in float coord, const in sampler_info params)
|
|||||||
#ifdef _ENABLE_TEX2D
|
#ifdef _ENABLE_TEX2D
|
||||||
vec2 _texcoord_xform(const in vec2 coord, const in sampler_info params)
|
vec2 _texcoord_xform(const in vec2 coord, const in sampler_info params)
|
||||||
{
|
{
|
||||||
float result = fma(
|
vec2 result = fma(
|
||||||
coord,
|
coord,
|
||||||
vec2(params.scale_x, params.scale_y),
|
vec2(params.scale_x, params.scale_y),
|
||||||
vec2(params.bias_x, params.bias_y)
|
vec2(params.bias_x, params.bias_y)
|
||||||
@ -106,7 +106,7 @@ vec2 _texcoord_xform(const in vec2 coord, const in sampler_info params)
|
|||||||
#ifdef _ENABLE_TEX3D
|
#ifdef _ENABLE_TEX3D
|
||||||
vec3 _texcoord_xform(const in vec3 coord, const in sampler_info params)
|
vec3 _texcoord_xform(const in vec3 coord, const in sampler_info params)
|
||||||
{
|
{
|
||||||
float result = fma(
|
vec3 result = fma(
|
||||||
coord,
|
coord,
|
||||||
vec3(params.scale_x, params.scale_y, params.scale_z),
|
vec3(params.scale_x, params.scale_y, params.scale_z),
|
||||||
vec3(params.bias_x, params.bias_y, params.bias_z)
|
vec3(params.bias_x, params.bias_y, params.bias_z)
|
||||||
|
@ -18,20 +18,21 @@ namespace glsl
|
|||||||
struct shader_properties
|
struct shader_properties
|
||||||
{
|
{
|
||||||
glsl::program_domain domain : 3;
|
glsl::program_domain domain : 3;
|
||||||
|
|
||||||
// Applicable in vertex stage
|
// Applicable in vertex stage
|
||||||
bool require_lit_emulation : 1;
|
bool require_lit_emulation : 1;
|
||||||
|
bool require_explicit_invariance : 1;
|
||||||
|
bool emulate_zclip_transform : 1;
|
||||||
|
bool emulate_depth_clip_only : 1;
|
||||||
|
|
||||||
// Only relevant for fragment programs
|
// Only relevant for fragment programs
|
||||||
bool fp32_outputs : 1;
|
bool fp32_outputs : 1;
|
||||||
bool require_wpos : 1;
|
bool require_wpos : 1;
|
||||||
bool require_srgb_to_linear : 1;
|
bool require_srgb_to_linear : 1;
|
||||||
bool require_linear_to_srgb : 1;
|
bool require_linear_to_srgb : 1;
|
||||||
bool require_explicit_invariance: 1;
|
|
||||||
bool require_fog_read : 1;
|
bool require_fog_read : 1;
|
||||||
bool emulate_coverage_tests : 1;
|
bool emulate_coverage_tests : 1;
|
||||||
bool emulate_shadow_compare : 1;
|
bool emulate_shadow_compare : 1;
|
||||||
bool emulate_zclip_transform : 1;
|
|
||||||
bool emulate_depth_clip_only : 1;
|
|
||||||
bool low_precision_tests : 1;
|
bool low_precision_tests : 1;
|
||||||
bool disable_early_discard : 1;
|
bool disable_early_discard : 1;
|
||||||
bool supports_native_fp16 : 1;
|
bool supports_native_fp16 : 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user