From d26e464b6ab391be93f7c7cef8193f6e1567e0cf Mon Sep 17 00:00:00 2001 From: Vladimir Dergachev Date: Thu, 3 Feb 2005 16:01:46 +0000 Subject: Looks like we need at least one instruction for pixel shader. --- src/mesa/drivers/dri/r300/r300_fixed_pipelines.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/r300/r300_fixed_pipelines.h b/src/mesa/drivers/dri/r300/r300_fixed_pipelines.h index e10318f954..73b410f965 100644 --- a/src/mesa/drivers/dri/r300/r300_fixed_pipelines.h +++ b/src/mesa/drivers/dri/r300/r300_fixed_pipelines.h @@ -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}, -- cgit v1.2.3