• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 51 52 53 54 55 ... 111 Next »

Failed to compile pixelshader 5830 Debian fglrx
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Failed to compile pixelshader 5830 Debian fglrx
10-13-2011, 01:33 AM
#1
Laberkopf
Unregistered
 
Hello, I hope this is the right forum and here's the Eroor message+dump:

Quote:Debug info (7000):
(0) : error C6007: Constant register limit exceeded; more than 32 constant registers needed to compiled program

Quote://Pixel Shader for TEV stages
//5 TEV stages, 4 texgens, XXX IND stages
uniform sampler2D samp0 : register(s0), samp1 : register(s1), samp2 : register(s2), samp3 : register(s3), samp4 : register(s4), samp5 : register(s5), samp6 : register(s6), samp7 : register(s7);

uniform float4 color[4] : register(c0);
uniform float4 k[4] : register(c4);
uniform float4 alphaRef[1] : register(c8);
uniform float4 texdim[8] : register(c9);
uniform float4 czbias[2] : register(c17);
uniform float4 cindscale[2] : register(c19);
uniform float4 cindmtx[6] : register(c21);
uniform float4 cfog[3] : register(c27);
void main(
out float4 ocol0 : COLOR0,
out float depth : DEPTH,
in float4 rawpos : WPOS,
in float4 colors_0 : COLOR0,
in float4 colors_1 : COLOR1,
in float3 uv0 : TEXCOORD0,
in float3 uv1 : TEXCOORD1,
in float3 uv2 : TEXCOORD2,
in float3 uv3 : TEXCOORD3,
in float4 clipPos : TEXCOORD4 ) {
float4 c0 = color[1], c1 = color[2], c2 = color[3], prev = float4(0.0f, 0.0f, 0.0f, 0.0f), textemp = float4(0.0f, 0.0f, 0.0f, 0.0f), rastemp = float4(0.0f, 0.0f, 0.0f, 0.0f), konsttemp = float4(0.0f, 0.0f, 0.0f, 0.0f);
float3 comp16 = float3(1.0f, 255.0f, 0.0f), comp24 = float3(1.0f, 255.0f, 255.0f*255.0f);
float4 alphabump=float4(0.0f,0.0f,0.0f,0.0f);
float3 tevcoord=float3(0.0f, 0.0f, 0.0f);
float2 wrappedcoord=float2(0.0f,0.0f), tempcoord=float2(0.0f,0.0f);
float4 cc0=float4(0.0f,0.0f,0.0f,0.0f), cc1=float4(0.0f,0.0f,0.0f,0.0f);
float4 cc2=float4(0.0f,0.0f,0.0f,0.0f), cprev=float4(0.0f,0.0f,0.0f,0.0f);
float4 crastemp=float4(0.0f,0.0f,0.0f,0.0f),ckonsttemp=float4(0.0f,0.0f,0.0f,0.0f);

clipPos = float4(rawpos.x, rawpos.y, clipPos.z, clipPos.w);
uv0.xy = uv0.xy * texdim[0].zw;
uv1.xy = uv1.xy * texdim[1].zw;
uv2.xy = uv2.xy * texdim[2].zw;
uv3.xy = uv3.xy * texdim[3].zw;
// TEV stage 0
tevcoord.xy = uv1.xy;
textemp=tex2D(samp1,tevcoord.xy * texdim[1].xy).rgba;
konsttemp = float4(k[0].aaa, k[0].a);
ckonsttemp = frac(konsttemp * (255.0f/256.0f)) * (256.0f/255.0f);
// color combine
c2.rgb = saturate( float3(0.0f, 0.0f, 0.0f) + (( dot((textemp.aaa).rgb, comp16) >= (dot((ckonsttemp.rgb).rgb, comp16) + (0.25f/255.0f))) ? float3(1.0f, 1.0f, 1.0f) : float3(0.0f, 0.0f, 0.0f)));
// alpha combine
prev.a = saturate(float4(0.0f, 0.0f, 0.0f, 0.0f).a);

// TEV done
// TEV stage 1
tevcoord.xy = uv0.xy;
textemp=tex2D(samp0,tevcoord.xy * texdim[0].xy).rgba;
cc2 = frac(c2 * (255.0f/256.0f)) * (256.0f/255.0f);
// color combine
prev.rgb = saturate((textemp.rgb)*(cc2.rgb));
// alpha combine
prev.a = saturate(float4(0.0f, 0.0f, 0.0f, 0.0f).a);

// TEV done
// TEV stage 2
tevcoord.xy = uv2.xy;
textemp=tex2D(samp2,tevcoord.xy * texdim[2].xy).rgba;
cc2 = frac(c2 * (255.0f/256.0f)) * (256.0f/255.0f);
// color combine
prev.rgb = saturate((prev.rgb)+(textemp.rgb)*(float3(1.0f, 1.0f, 1.0f)-(cc2.rgb)));
// alpha combine
prev.a = saturate(float4(0.0f, 0.0f, 0.0f, 0.0f).a);

// TEV done
// TEV stage 3
rastemp = colors_0.rgba;
crastemp = frac(rastemp * (255.0f/256.0f)) * (256.0f/255.0f);
tevcoord.xy = uv3.xy;
textemp=tex2D(samp3,tevcoord.xy * texdim[3].xy).rgba;
konsttemp = float4(0.625f,0.625f,0.625f, k[0].a);
ckonsttemp = frac(konsttemp * (255.0f/256.0f)) * (256.0f/255.0f);
// color combine
c1.rgb = saturate((c0.rgb)+lerp((textemp.rgb), (crastemp.rgb), (ckonsttemp.rgb))-0.5f);
// alpha combine
prev.a = float4(0.0f, 0.0f, 0.0f, 0.0f).a;

// TEV done
// TEV stage 4
rastemp = colors_1.rgba;
crastemp = frac(rastemp * (255.0f/256.0f)) * (256.0f/255.0f);
textemp = float4(1.0f, 1.0f, 1.0f, 1.0f);
konsttemp = float4(0.5f,0.5f,0.5f, k[0].a);
ckonsttemp = frac(konsttemp * (255.0f/256.0f)) * (256.0f/255.0f);
cc1 = frac(c1 * (255.0f/256.0f)) * (256.0f/255.0f);
// color combine
prev.rgb = saturate((prev.rgb)+lerp((cc1.rgb), (crastemp.rgb), (ckonsttemp.rgb))-0.5f);
// alpha combine
prev.a = rastemp.a+float4(0.0f, 0.0f, 0.0f, 0.0f).a;

// TEV done
prev.rgb = prev.rgb;
prev.a = prev.a;
prev = frac(4.0f + prev * (255.0f/256.0f)) * (256.0f/255.0f);
float zCoord = czbias[1].x + (clipPos.z / clipPos.w) * czbias[1].y;
depth = zCoord;
float ze = cfog[1].x / (cfog[1].y - (zCoord / cfog[1].w));
float fog = saturate(ze - cfog[1].z);
prev.rgb = lerp(prev.rgb,cfog[0].rgb,fog);
ocol0 = prev;
}


Thanks for your help =)
Reply
10-13-2011, 03:23 AM
#2
mbc07 Offline
Wiki Caretaker
*******
Content Creators (Moderators)
Posts: 3,326
Threads: 27
Joined: Dec 2010
Are you using an older Intel GMA IGP? Provide your specs, please...
HP ENVY dv6-7300 Notebook PC                 ASRock Z97M OC Formula
CPU: Intel Core i7-3630QM @ 2.4 GHz          Intel Pentium G3258 @ 4.2 GHz (OC)
GPU: NVIDIA GeForce GT 650M @ 2 GB GDDR5     NVIDIA GeForce GT 440 @ 1 GB DDR3
RAM: 16 GB @ DDR3-1600 (2x8 GB)              16 GB @ DDR3-1600 (4x4 GB)
OS:  Windows 10 (Insider Preview)            Windows 10 (version 20H2)
Find
Reply
10-13-2011, 03:41 AM
#3
Laberkopf
Unregistered
 
As mentioned in the title, I'm using an Radeon HD5830 Wink
Reply
10-13-2011, 06:55 AM
#4
mbc07 Offline
Wiki Caretaker
*******
Content Creators (Moderators)
Posts: 3,326
Threads: 27
Joined: Dec 2010
Well, no clue... Maybe a dev discover something
HP ENVY dv6-7300 Notebook PC                 ASRock Z97M OC Formula
CPU: Intel Core i7-3630QM @ 2.4 GHz          Intel Pentium G3258 @ 4.2 GHz (OC)
GPU: NVIDIA GeForce GT 650M @ 2 GB GDDR5     NVIDIA GeForce GT 440 @ 1 GB DDR3
RAM: 16 GB @ DDR3-1600 (2x8 GB)              16 GB @ DDR3-1600 (4x4 GB)
OS:  Windows 10 (Insider Preview)            Windows 10 (version 20H2)
Find
Reply
10-13-2011, 11:08 PM
#5
KuriKai
Unregistered
 
I got the same message,
I'm using Ubuntu 11.04
Code:
product: Barts XT [ATI Radeon HD 6800 Series]
                vendor: ATI Technologies Inc
                physical id: 0
                bus info: pci@0000:01:00.0
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: pm pciexpress msi vga_controller bus_master cap_list rom

   

here is my dump
Code:
//Pixel Shader for TEV stages
//1 TEV stages, 2 texgens, XXX IND stages
uniform sampler2D  samp0 : register(s0), samp1 : register(s1), samp2 : register(s2), samp3 : register(s3), samp4 : register(s4), samp5 : register(s5), samp6 : register(s6), samp7 : register(s7);

uniform float4 color[4] : register(c0);
uniform float4 k[4] : register(c4);
uniform float4 alphaRef[1] : register(c8);
uniform float4 texdim[8] : register(c9);
uniform float4 czbias[2] : register(c17);
uniform float4 cindscale[2] : register(c19);
uniform float4 cindmtx[6] : register(c21);
uniform float4 cfog[3] : register(c27);
void main(
  out float4 ocol0 : COLOR0,
  in float4 rawpos : WPOS,
  in float4 colors_0 : COLOR0,
  in float4 colors_1 : COLOR1,
  in float3 uv0 : TEXCOORD0,
  in float3 uv1 : TEXCOORD1,
  in float4 clipPos : TEXCOORD2        ) {
  float4 c0 = color[1], c1 = color[2], c2 = color[3], prev = float4(0.0f, 0.0f, 0.0f, 0.0f), textemp = float4(0.0f, 0.0f, 0.0f, 0.0f), rastemp = float4(0.0f, 0.0f, 0.0f, 0.0f), konsttemp = float4(0.0f, 0.0f, 0.0f, 0.0f);
  float3 comp16 = float3(1.0f, 255.0f, 0.0f), comp24 = float3(1.0f, 255.0f, 255.0f*255.0f);
  float4 alphabump=float4(0.0f,0.0f,0.0f,0.0f);
  float3 tevcoord=float3(0.0f, 0.0f, 0.0f);
  float2 wrappedcoord=float2(0.0f,0.0f), tempcoord=float2(0.0f,0.0f);
  float4 cc0=float4(0.0f,0.0f,0.0f,0.0f), cc1=float4(0.0f,0.0f,0.0f,0.0f);
  float4 cc2=float4(0.0f,0.0f,0.0f,0.0f), cprev=float4(0.0f,0.0f,0.0f,0.0f);
  float4 crastemp=float4(0.0f,0.0f,0.0f,0.0f),ckonsttemp=float4(0.0f,0.0f,0.0f,0.0f);

clipPos = float4(rawpos.x, rawpos.y, clipPos.z, clipPos.w);
if (uv0.z)    uv0.xy = uv0.xy / uv0.z;
uv0.xy = uv0.xy * texdim[0].zw;
uv1.xy = uv1.xy * texdim[1].zw;
tempcoord = uv1.xy * cindscale[0].xy;
float3 indtex0=tex2D(samp1,tempcoord.xy * texdim[1].xy).abg;
// TEV stage 0
// indirect op
float3 indtevcrd0 = indtex0 * 255.0f;
indtevcrd0.xyz += -128.0f;
float2 indtevtrans0 = float2(dot(cindmtx[0].xyz, indtevcrd0), dot(cindmtx[1].xyz, indtevcrd0));
wrappedcoord.x = uv0.x;
wrappedcoord.y = uv0.y;
tevcoord.xy = wrappedcoord + indtevtrans0;
rastemp = colors_0.rgba;
crastemp = frac(rastemp * (255.0f/256.0f)) * (256.0f/255.0f);
textemp=tex2D(samp0,tevcoord.xy * texdim[0].xy).rgba;
// color combine
prev.rgb = saturate((textemp.rgb)*(crastemp.rgb));
// alpha combine
prev.a = saturate(textemp.a*crastemp.a);

// TEV done
prev.rgb = prev.rgb;
prev.a = prev.a;
prev = frac(4.0f + prev * (255.0f/256.0f)) * (256.0f/255.0f);
float zCoord = czbias[1].x + (clipPos.z / clipPos.w) * czbias[1].y;
  float ze = cfog[1].x / (cfog[1].y - (zCoord / cfog[1].w));
  float fog = saturate(ze - cfog[1].z);
  fog = 1.0f - pow(2.0f, -8.0f * fog);
  prev.rgb = lerp(prev.rgb,cfog[0].rgb,fog);
  ocol0 = prev;
}
Reply
10-14-2011, 12:00 AM (This post was last modified: 10-14-2011, 02:12 AM by neobrain.)
#6
dannzen Offline
I liked to help people (but NO)
*******
Posts: 1,525
Threads: 5
Joined: Dec 2010
dont use linux

[meme]Problems? Big Grin[/meme]


edit by neobrain: Don't suggest crap, thanks Wink
EDIT by neobrain: that pic was kinda annoying..
EDIT by dannzen: don't fuck with my sig Dodgy
EDIT by neobrain: yet, I will keep doing it Tongue
EDIT by ???? : A WILD DACO APPEARS
EDIT by [SS]: Hey guys, what's going on here?
EDIT by dannzen: Gotta Catch 'em All!
EDIT by ???? : WILD DACO BROKE FREE FROM MASTER BALL
Find
Reply
10-14-2011, 03:54 AM
#7
dEnigma Offline
Member
***
Posts: 138
Threads: 1
Joined: Sep 2011
(10-14-2011, 12:00 AM)dannzen Wrote: dont use linux

[meme]Problems? Big Grin[/meme]


edit by neobrain: Don't suggest crap, thanks Wink

Neobrain really seems to like messing with your comments^^
[Image: postcountwe8.jpg]
---------------------------------------------------------------------------------------
[Image: 2350461.png]
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode