Merge commit 'origin/gallium-master-merge'
[mesa.git] / src / gallium / drivers / i965simple / brw_shader_info.c
index 431b45466a6bbed7daf7342eb015e8344d7fb833..86d877d7efd49cc6535000eee836778269a63b35 100644 (file)
@@ -1,13 +1,14 @@
 
 #include "brw_context.h"
 #include "brw_state.h"
-#include "pipe/p_util.h"
+#include "util/u_memory.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
-
-
+#include "tgsi/tgsi_parse.h"
 
 
+/**
+ * XXX this obsolete new and no longer compiled.
+ */
 void brw_shader_info(const struct tgsi_token *tokens,
                     struct brw_shader_info *info )
 {
@@ -25,9 +26,7 @@ void brw_shader_info(const struct tgsi_token *tokens,
       case TGSI_TOKEN_TYPE_DECLARATION:
       {
         const struct tgsi_full_declaration *decl = &parse.FullToken.FullDeclaration;
-        unsigned last = decl->u.DeclarationRange.Last;
-        
-        assert( decl->Declaration.Declare == TGSI_DECLARE_RANGE );
+        unsigned last = decl->DeclarationRange.Last;
       
         // Broken by crazy wpos init:
         //assert( info->nr_regs[decl->Declaration.File] <= last);