On Thu, 2008-09-25 at 01:24 +0200, Dieter Nützel wrote:
> example:
> 
> Tunnel V1.5
> Written by David Bucciarelli ([EMAIL PROTECTED])
> Mesa 7.3-devel implementation error: 
> radeon_program_pair.c::allocate_input_registers(): Don't know how to handle 
> inputs 0x8
> 
> 
> Please report at bugzilla.freedesktop.org
> pc=0*************************************
> Hardware program
> ----------------
> NODE 0: alu_offset: 0, tex_offset: 0, alu_end: -1, tex_end: -1, flags: 
> 00000000
> *********************************WARN_ONCE*********************************
> File r300_render.c function r300Fallback line 366
> Software fallback:!fp->translated
> ***************************************************************************
> Mesa 7.3-devel implementation error: 
> radeon_program_pair.c::allocate_input_registers(): Don't know how to handle 
> inputs 0x8

According to git bisect:

19d77d6cfa384142cc6ab4d9b3db4b28cefb6f19 is first bad commit
commit 19d77d6cfa384142cc6ab4d9b3db4b28cefb6f19
Author: Brian <[EMAIL PROTECTED]>
Date:   Tue Sep 18 19:29:26 2007 -0600

    temporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabled
    (cherry picked from commit 63be96bdc7e9f388a5c49295bd7e150462fd003a)


The attached patch gets tunnel running here, but it still complains:

*********************************WARN_ONCE*********************************
File r300_state.c function r300SetupRSUnit line 1756
Don't know how to satisfy InputsRead=0x00000008
***************************************************************************


I think FRAG_BIT_FOGC needs to be handled in a couple of other places as
well, but I'll leave that to Corbin or Nicolai or so. :)


-- 
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer
diff --git a/src/mesa/drivers/dri/r300/radeon_program_pair.c b/src/mesa/drivers/dri/r300/radeon_program_pair.c
index 5ad50d2..bc6251a 100644
--- a/src/mesa/drivers/dri/r300/radeon_program_pair.c
+++ b/src/mesa/drivers/dri/r300/radeon_program_pair.c
@@ -473,6 +473,11 @@ static void allocate_input_registers(struct pair_state *s)
 		alloc_hw_reg(s, PROGRAM_INPUT, FRAG_ATTRIB_COL1, hwindex++);
 	InputsRead &= ~FRAG_BIT_COL1;
 
+	/* Fog color */
+	if (InputsRead & FRAG_BIT_FOGC)
+		alloc_hw_reg(s, PROGRAM_INPUT, FRAG_ATTRIB_FOGC, hwindex++);
+	InputsRead &= ~FRAG_BIT_FOGC;
+
 	/* Anything else */
 	if (InputsRead)
 		error("Don't know how to handle inputs 0x%x\n", InputsRead);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to