Thinkofname / steven-go

Go Minecraft Client
http://steven.thinkofdeath.uk/
Apache License 2.0
302 stars 26 forks source link

render/glsl: don't include #line statements for amd gpus #57

Closed Thinkofname closed 9 years ago

Thinkofname commented 9 years ago

Or maybe all and just leave it under a flag or something?

panic: Vertex shader failed to compile with the following errors:
ERROR: 0:1: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:2: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:3: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:4: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:5: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:6: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:7: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:8: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:9: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:10: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:11: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:12: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:13: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:14: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:15: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:16: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:17: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:18: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:1: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:2: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:3: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:4: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:5: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:6: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:7: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:8: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:9: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:10: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:11: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:12: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:13: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:14: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:15: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:16: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:17: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:18: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:19: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:20: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:21: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:22: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:23: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:24: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:25: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:26: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:20: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:21: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:22: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:23: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:24: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:25: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:26: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:27: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:28: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:29: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:30: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:31: error(#74) Syntax error unexpected tokens following #line
ERROR: 0:32: error(#74) Syntax error unexpected tokens following #line
ERROR: error(#273) 57 compilation errors.  No code generated

goroutine 1 [running, locked to thread]:
github.com/thinkofdeath/steven/render.CreateProgram(0x13475800, 0xba6, 0x13b04000, 0x749, 0x0)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/render/shader.go:34 +0xd3
github.com/thinkofdeath/steven/render.Start()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/render/render.go:78 +0x121
github.com/thinkofdeath/steven.start()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/steven.go:126 +0x7d
github.com/thinkofdeath/steven.startWindow()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/desktop.go:97 +0x235
github.com/thinkofdeath/steven.Main(0x13424160, 0x9, 0x1343a1e0, 0x20, 0x1343a210, 0x20)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/steven.go:94 +0x110
main.main()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/cmd/steven/steven.go:47 +0x1cf

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
        /home/thinkofdeath/go/src/runtime/asm_386.s:1666 +0x1

goroutine 20 [select]:
net/http.(*Transport).getConn(0x13444850, 0x13716000, 0x0, 0x13712140, 0x5, 0x137060e0, 0x14, 0x0, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/http/transport.go:549 +0x40b
net/http.(*Transport).RoundTrip(0x13444850, 0x13716000, 0x13718000, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/http/transport.go:228 +0x3b9
net/http.send(0x13716000, 0x33db4338, 0x13444850, 0x44, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/http/client.go:220 +0x3c0
net/http.(*Client).send(0xc0ede0, 0x13716000, 0x44, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/http/client.go:143 +0xf5
net/http.(*Client).doFollowingRedirects(0xc0ede0, 0x13716000, 0xa43024, 0x0, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/http/client.go:380 +0x9bd
net/http.(*Client).Get(0xc0ede0, 0x13712140, 0x44, 0x1370a120, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/http/client.go:306 +0x92
net/http.Get(0x13712140, 0x44, 0x1340ff5c, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/http/client.go:281 +0x3f
github.com/thinkofdeath/steven/resource.downloadDefault(0x1363de40, 0x1341e6c0, 0x13632fe0, 0x11)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/resource/resource.go:279 +0x1f8
github.com/thinkofdeath/steven/resource.Init.func1(0x1341e6c0, 0x1363de40, 0x13632fe0, 0x11)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/resource/resource.go:158 +0x8c
created by github.com/thinkofdeath/steven/resource.Init
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/resource/resource.go:165 +0x1f2

goroutine 34 [chan receive]:
net/http.(*Transport).dialConn(0x13444850, 0x0, 0x13712140, 0x5, 0x137060e0, 0x14, 0x1, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/http/transport.go:667 +0x6ba
net/http.(*Transport).getConn.func4(0x13444850, 0x0, 0x13712140, 0x5, 0x137060e0, 0x14, 0x1370c240)
        /home/thinkofdeath/go/src/net/http/transport.go:544 +0x4d
created by net/http.(*Transport).getConn
        /home/thinkofdeath/go/src/net/http/transport.go:546 +0x1e7

goroutine 21 [IO wait]:
net.runtime_pollWait(0x33f85010, 0x72, 0x13c514d0)
        /home/thinkofdeath/go/src/runtime/netpoll.go:157 +0x55
net.(*pollDesc).Wait(0x137200d0, 0x72, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/fd_poll_runtime.go:73 +0x35
net.(*ioSrv).ExecIO(0x13702088, 0x13720038, 0x926948, 0x7, 0xa42f1c, 0x1341d888, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/fd_windows.go:182 +0x122
net.(*netFD).Read(0x13720000, 0x13457000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/fd_windows.go:463 +0x129
net.(*conn).Read(0x13423b70, 0x13457000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        /home/thinkofdeath/go/src/net/net.go:124 +0xb9
crypto/tls.(*block).readFromUntil(0x13550000, 0x33db64f0, 0x13423b70, 0x5, 0x0, 0x0)
        /home/thinkofdeath/go/src/crypto/tls/conn.go:455 +0xa4
crypto/tls.(*Conn).readRecord(0x1342a4e0, 0x14, 0x0, 0x0)
        /home/thinkofdeath/go/src/crypto/tls/conn.go:540 +0x269
crypto/tls.(*clientHandshakeState).readFinished(0x1341df20, 0x0, 0x0, 0x0, 0x0, 0x0)
        /home/thinkofdeath/go/src/crypto/tls/handshake_client.go:558 +0x4a
crypto/tls.(*Conn).clientHandshake(0x1342a4e0, 0x0, 0x0)
        /home/thinkofdeath/go/src/crypto/tls/handshake_client.go:218 +0x13e2
crypto/tls.(*Conn).Handshake(0x1342a4e0, 0x0, 0x0)
        /home/thinkofdeath/go/src/crypto/tls/conn.go:974 +0xd3
net/http.(*Transport).dialConn.func3(0x1342a4e0, 0x135fbfb0, 0x13668840)
        /home/thinkofdeath/go/src/net/http/transport.go:661 +0x21
created by net/http.(*Transport).dialConn
        /home/thinkofdeath/go/src/net/http/transport.go:666 +0x688

goroutine 22 [runnable]:
github.com/thinkofdeath/steven.(*baseBlock).SID(0x1341e880, 0x0)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/block.go:143
github.com/thinkofdeath/steven.newChunkSection(0x13af1b80, 0x3, 0x13d88200)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/chunk.go:428 +0x115
github.com/thinkofdeath/steven.loadChunk(0x0, 0xfffffffc, 0x13771e28, 0xc100, 0xc100, 0x101000f, 0xc100)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/chunk.go:480 +0x927
github.com/thinkofdeath/steven.fakeGen.func1()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/fakegen.go:120 +0x4fb
created by github.com/thinkofdeath/steven.fakeGen
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/fakegen.go:123 +0x62