Project

General

Profile

Actions

Emulator Issues #9361

closed

Sonic Heroes : Anti-Aliasing SSAA don't work and crash the game

Added by MrMaleficus almost 9 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?

Sonic Heroes

Game ID? (right click the game in the game list, properties, info tab)

G9SP8P

MD5 Hash? (right click the game in the game list, properties, info tab, MD5 Hash: Compute)

246bf4d158b65c62c5bc3a0e3f80615d

What's the problem? Describe what went wrong.

Error Message on game launch when SSAA is enabled

What steps will reproduce the problem?

[Reproduction steps here]

Which versions of Dolphin did you test on? Does using an older version of Dolphin solve your issue? If yes, which versions of Dolphin used to work?

4.0-8979

What are your PC specifications? (CPU, GPU, Operating System, more)

Mac OS X 10.10.4 - Intel i7 3665QM - NVIDIA GT650M

Is there any other relevant information? (e.g. logs, screenshots,
configuration files)

#version 400

#define SAMPLER_BINDING(x)

#define float2 vec2
#define float3 vec3
#define float4 vec4
#define uint2 uvec2
#define uint3 uvec3
#define uint4 uvec4
#define int2 ivec2
#define int3 ivec3
#define int4 ivec4
#define frac fract
#define lerp mix
struct Light {
	int4 color;
	float4 cosatt;
	float4 distatt;
	float4 pos;
	float4 dir;
};
layout(std140) uniform VSBlock {
	float4 cpnmtx[6];
	float4 cproj[4];
	int4 cmtrl[4];
	Light clights[8];
	float4 ctexmtx[24];
	float4 ctrmtx[64];
	float4 cnmtx[32];
	float4 cpostmtx[64];
	float4 cpixelcenter;
};
struct VS_OUTPUT {
	float4 pos;
	float4 colors_0;
	float4 colors_1;
	float4 clipPos;
};
in float4 rawpos; // ATTR0,
out VertexData {
	sample float4 pos;
	sample float4 colors_0;
	sample float4 colors_1;
	sample float4 clipPos;
} vs;
void main()
{
VS_OUTPUT o;
float4 pos = float4(dot(cpnmtx[0], rawpos), dot(cpnmtx[1], rawpos), dot(cpnmtx[2], rawpos), 1.0);
float3 _norm0 = float3(0.0, 0.0, 0.0);
o.pos = float4(dot(cproj[0], pos), dot(cproj[1], pos), dot(cproj[2], pos), dot(cproj[3], pos));
int4 lacc;
float3 ldir, h, cosAttn, distAttn;
float dist, dist2, attn;
{
int4 mat = cmtrl[2];
lacc = int4(255, 255, 255, 255);
lacc.w = 255;
lacc = clamp(lacc, 0, 255);
o.colors_0 = float4((mat * (lacc + (lacc >> 7))) >> 8) / 255.0;
}
o.colors_1 = o.colors_0;
float4 coord = float4(0.0, 0.0, 1.0, 1.0);
o.clipPos = o.pos;
o.pos.z = o.pos.z * -2.0 - o.pos.w;
o.pos.xy = o.pos.xy - o.pos.w * cpixelcenter.xy;
	vs.pos = o.pos;
	vs.colors_0 = o.colors_0;
	vs.colors_1 = o.colors_1;
	vs.clipPos = o.clipPos;
gl_Position = o.pos;
}
ERROR: 0:57: 'centroid', 'sample' and 'patch' must be directly followed by 'in', 'out' or 'varying'
ERROR: 0:83: Use of undeclared identifier 'vs'
ERROR: 0:84: Use of undeclared identifier 'vs'
ERROR: 0:85: Use of undeclared identifier 'vs'
ERROR: 0:86: Use of undeclared identifier 'vs'
Actions #1

Updated by MrMaleficus almost 9 years ago

I use OpenGL 4.1

Actions #2

Updated by Sonicadvance1 almost 9 years ago

Yep. Looks like a bug in the OSX shader compiler.

Actions #3

Updated by JMC4789 almost 9 years ago

  • Status changed from New to Questionable

Tell Apple to fix their drivers.

Actions #4

Updated by Sonicadvance1 almost 9 years ago

Submitted to apple as bug 24983074

Actions #6

Updated by JosJuice over 8 years ago

  • Status changed from Questionable to Fixed
Actions

Also available in: Atom PDF