Bug 29013 - [r300g] translate_rgb_op: unknown opcode ILLEGAL OPCODE
[r300g] translate_rgb_op: unknown opcode ILLEGAL OPCODE
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/r300
Other Linux (All)
: medium normal
Assigned To: Default DRI bug account
Depends on:
  Show dependency treegraph
Reported: 2010-07-12 01:51 UTC by Remi Meier
Modified: 2010-08-17 19:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

RADEON_DEBUG="fp" output (14.40 KB, text/plain)
2010-07-12 01:51 UTC, Remi Meier

Note You need to log in before you can comment on or make changes to this bug.
Description Remi Meier 2010-07-12 01:51:23 UTC
Created attachment 36952 [details]
RADEON_DEBUG="fp" output

A small fragment shader produces the following output:
r300: Unknown TGSI/RC opcode: CAL
r300: Unknown TGSI/RC opcode: BGNSUB
r300: Unknown TGSI/RC opcode: ENDSUB
r300 FP: Compiler Error:
r500_fragprog_emit.c::translate_rgb_op(): translate_rgb_op: unknown opcode ILLEGAL OPCODE

Using a dummy shader instead.
If there's an 'unknown opcode' message, please file a bug report and attach this log.

The shader looks like this:
vec3 floatToColor(float x)
	if(x == 1.0)
		return vec3(0, 0, 0);

void main()
	gl_FragColor.rgb = floatToColor(1);

RADEON_DEBUG="fp" output is attached
Comment 1 Marek Olšák 2010-08-17 19:19:30 UTC
Fixed with the new GLSL compiler. Closing..