Move mesa_to_tgsi.[ch] to state_tracker
This commit is contained in:
@@ -186,8 +186,6 @@ TGSIEXEC_SOURCES = \
|
|||||||
TGSIDECO_SOURCES = \
|
TGSIDECO_SOURCES = \
|
||||||
pipe/tgsi/deco/deco_caps.c
|
pipe/tgsi/deco/deco_caps.c
|
||||||
|
|
||||||
TGSIMESA_SOURCES = \
|
|
||||||
pipe/tgsi/mesa/mesa_to_tgsi.c
|
|
||||||
|
|
||||||
ifeq ($(MESA_LLVM),1)
|
ifeq ($(MESA_LLVM),1)
|
||||||
LLVMTGSI_SOURCES = \
|
LLVMTGSI_SOURCES = \
|
||||||
@@ -235,6 +233,7 @@ STATETRACKER_SOURCES = \
|
|||||||
state_tracker/st_debug.c \
|
state_tracker/st_debug.c \
|
||||||
state_tracker/st_draw.c \
|
state_tracker/st_draw.c \
|
||||||
state_tracker/st_format.c \
|
state_tracker/st_format.c \
|
||||||
|
state_tracker/st_mesa_to_tgsi.c \
|
||||||
state_tracker/st_program.c \
|
state_tracker/st_program.c \
|
||||||
state_tracker/st_mipmap_tree.c
|
state_tracker/st_mipmap_tree.c
|
||||||
|
|
||||||
@@ -389,7 +388,6 @@ SOLO_SOURCES = \
|
|||||||
$(DRAW_SOURCES) \
|
$(DRAW_SOURCES) \
|
||||||
$(TGSIEXEC_SOURCES) \
|
$(TGSIEXEC_SOURCES) \
|
||||||
$(TGSIDECO_SOURCES) \
|
$(TGSIDECO_SOURCES) \
|
||||||
$(TGSIMESA_SOURCES) \
|
|
||||||
$(STATECACHE_SOURCES) \
|
$(STATECACHE_SOURCES) \
|
||||||
$(STATETRACKER_SOURCES) \
|
$(STATETRACKER_SOURCES) \
|
||||||
$(TNL_SOURCES) \
|
$(TNL_SOURCES) \
|
||||||
|
@@ -41,7 +41,6 @@
|
|||||||
#include "main/mtypes.h"
|
#include "main/mtypes.h"
|
||||||
|
|
||||||
#include "pipe/p_context.h"
|
#include "pipe/p_context.h"
|
||||||
#include "pipe/tgsi/mesa/mesa_to_tgsi.h"
|
|
||||||
#include "pipe/tgsi/exec/tgsi_core.h"
|
#include "pipe/tgsi/exec/tgsi_core.h"
|
||||||
|
|
||||||
#include "st_context.h"
|
#include "st_context.h"
|
||||||
@@ -49,6 +48,7 @@
|
|||||||
#include "st_atom.h"
|
#include "st_atom.h"
|
||||||
#include "st_program.h"
|
#include "st_program.h"
|
||||||
#include "st_atom_shader.h"
|
#include "st_atom_shader.h"
|
||||||
|
#include "st_mesa_to_tgsi.h"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -43,13 +43,13 @@
|
|||||||
#include "st_draw.h"
|
#include "st_draw.h"
|
||||||
#include "st_program.h"
|
#include "st_program.h"
|
||||||
#include "st_public.h"
|
#include "st_public.h"
|
||||||
|
#include "st_mesa_to_tgsi.h"
|
||||||
|
|
||||||
#include "pipe/p_context.h"
|
#include "pipe/p_context.h"
|
||||||
#include "pipe/p_state.h"
|
#include "pipe/p_state.h"
|
||||||
#include "pipe/p_defines.h"
|
#include "pipe/p_defines.h"
|
||||||
#include "pipe/p_winsys.h"
|
#include "pipe/p_winsys.h"
|
||||||
|
|
||||||
#include "pipe/tgsi/mesa/mesa_to_tgsi.h"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -45,10 +45,10 @@
|
|||||||
#include "st_cb_texture.h"
|
#include "st_cb_texture.h"
|
||||||
#include "st_draw.h"
|
#include "st_draw.h"
|
||||||
#include "st_format.h"
|
#include "st_format.h"
|
||||||
|
#include "st_mesa_to_tgsi.h"
|
||||||
#include "pipe/p_context.h"
|
#include "pipe/p_context.h"
|
||||||
#include "pipe/p_defines.h"
|
#include "pipe/p_defines.h"
|
||||||
#include "pipe/p_winsys.h"
|
#include "pipe/p_winsys.h"
|
||||||
#include "pipe/tgsi/mesa/mesa_to_tgsi.h"
|
|
||||||
#include "shader/prog_instruction.h"
|
#include "shader/prog_instruction.h"
|
||||||
|
|
||||||
|
|
||||||
|
@@ -43,7 +43,6 @@
|
|||||||
#include "st_program.h"
|
#include "st_program.h"
|
||||||
#include "st_atom_shader.h"
|
#include "st_atom_shader.h"
|
||||||
|
|
||||||
#include "pipe/tgsi/mesa/tgsi_mesa.h"
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,6 +1,39 @@
|
|||||||
|
/**************************************************************************
|
||||||
|
*
|
||||||
|
* Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas.
|
||||||
|
* All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the
|
||||||
|
* "Software"), to deal in the Software without restriction, including
|
||||||
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice (including the
|
||||||
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
|
* of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||||
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
|
**************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* \author
|
||||||
|
* Michal Krol
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "tgsi_platform.h"
|
#include "tgsi_platform.h"
|
||||||
#include "tgsi_mesa.h"
|
#include "pipe/tgsi/exec/tgsi_core.h"
|
||||||
#include "pipe/tgsi/mesa/mesa_to_tgsi.h"
|
#include "st_mesa_to_tgsi.h"
|
||||||
#include "shader/prog_parameter.h"
|
#include "shader/prog_parameter.h"
|
||||||
|
|
||||||
#define TGSI_DEBUG 0
|
#define TGSI_DEBUG 0
|
||||||
|
@@ -1,9 +1,37 @@
|
|||||||
#if !defined MESA_TO_TGSI_H
|
/**************************************************************************
|
||||||
#define MESA_TO_TGSI_H
|
*
|
||||||
|
* Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas.
|
||||||
|
* All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the
|
||||||
|
* "Software"), to deal in the Software without restriction, including
|
||||||
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice (including the
|
||||||
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
|
* of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
|
||||||
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
|
**************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef ST_MESA_TO_TGSI_H
|
||||||
|
#define ST_MESA_TO_TGSI_H
|
||||||
|
|
||||||
#if defined __cplusplus
|
#if defined __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif // defined __cplusplus
|
#endif
|
||||||
|
|
||||||
struct tgsi_token;
|
struct tgsi_token;
|
||||||
|
|
||||||
@@ -25,8 +53,8 @@ tgsi_translate_mesa_program(
|
|||||||
|
|
||||||
|
|
||||||
#if defined __cplusplus
|
#if defined __cplusplus
|
||||||
} // extern "C"
|
} /* extern "C" */
|
||||||
#endif // defined __cplusplus
|
#endif
|
||||||
|
|
||||||
#endif // !defined MESA_TO_TGSI_H
|
#endif /* ST_MESA_TO_TGSI_H */
|
||||||
|
|
||||||
|
@@ -37,7 +37,6 @@
|
|||||||
#include "pipe/p_context.h"
|
#include "pipe/p_context.h"
|
||||||
#include "pipe/p_defines.h"
|
#include "pipe/p_defines.h"
|
||||||
#include "pipe/draw/draw_context.h"
|
#include "pipe/draw/draw_context.h"
|
||||||
#include "pipe/tgsi/mesa/mesa_to_tgsi.h"
|
|
||||||
#include "pipe/tgsi/exec/tgsi_core.h"
|
#include "pipe/tgsi/exec/tgsi_core.h"
|
||||||
#include "pipe/llvm/llvmtgsi.h"
|
#include "pipe/llvm/llvmtgsi.h"
|
||||||
|
|
||||||
@@ -45,6 +44,7 @@
|
|||||||
#include "st_cache.h"
|
#include "st_cache.h"
|
||||||
#include "st_atom.h"
|
#include "st_atom.h"
|
||||||
#include "st_program.h"
|
#include "st_program.h"
|
||||||
|
#include "st_mesa_to_tgsi.h"
|
||||||
|
|
||||||
|
|
||||||
#define TGSI_DEBUG 0
|
#define TGSI_DEBUG 0
|
||||||
|
Reference in New Issue
Block a user