Looks like we need at least one instruction for pixel shader.
authorVladimir Dergachev <volodya@freedesktop.org>
Thu, 3 Feb 2005 16:01:46 +0000 (16:01 +0000)
committerVladimir Dergachev <volodya@freedesktop.org>
Thu, 3 Feb 2005 16:01:46 +0000 (16:01 +0000)
src/mesa/drivers/dri/r300/r300_fixed_pipelines.h

index e10318f954dd831ce799ef10e1a7c88116e705ea..73b410f965eba1153df71156384b9ce6502faeb6 100644 (file)
@@ -99,6 +99,11 @@ static struct r300_pixel_shader_state FLAT_COLOR_PIXEL_SHADER={
                                },
                        alu: {
                                length: 0,
+                                       /* My understanding is that we need at least 1 instructions for pixel shader, 
+                                          in particular because alu_end==0 means there is one instruction */
+                               inst: {
+                                       PFS_NOP
+                                       }
                                },
                        node: {
                                { 0, 0, 0, 0},