r300g: remove dependency on compiler.h
authorBrian Paul <brianp@vmware.com>
Wed, 25 Feb 2015 00:47:00 +0000 (17:47 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 26 Feb 2015 15:38:38 +0000 (08:38 -0700)
It only needs typical stdio.h and stdlib.h functions.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/r300/compiler/radeon_compiler.h
src/gallium/drivers/r300/compiler/radeon_emulate_loops.c
src/gallium/drivers/r300/compiler/radeon_remove_constants.c
src/gallium/drivers/r300/compiler/radeon_variable.c
src/gallium/drivers/r300/r300_tgsi_to_rc.c

index e2710d848c5ac6cf938a1dabb4ae8b48b476fb01..9dc6855be3c9b3519f3064f01d5a043121def482 100644 (file)
@@ -23,8 +23,6 @@
 #ifndef RADEON_COMPILER_H
 #define RADEON_COMPILER_H
 
-#include "main/compiler.h"
-
 #include "memory_pool.h"
 #include "radeon_code.h"
 #include "radeon_program.h"
index e7b69c875c6ccb9d2558771854f1030c26ded938..d42b3e793d2f7cb6c1997c89d09f83a936ac499e 100644 (file)
@@ -29,8 +29,9 @@
  * \file
  */
 
+#include <stdio.h>
+#include "c99_math.h"
 #include "radeon_emulate_loops.h"
-
 #include "radeon_compiler.h"
 #include "radeon_compiler_util.h"
 #include "radeon_dataflow.h"
index 7d76585a593b6b822bd48b1d12a5477e947019b1..d17f502b23f7c25f6414ef25226960a1e3490c8f 100644 (file)
@@ -25,6 +25,7 @@
  *
  */
 
+#include <stdlib.h>
 #include "radeon_remove_constants.h"
 #include "radeon_dataflow.h"
 
index c7ac486f33f1ab0aaccbfabc10d2dbde8005f2b9..ba895239fb69c33a4272f7edba29e6597f106890 100644 (file)
@@ -25,6 +25,7 @@
  *
  */
 
+#include <stdio.h>
 #include "radeon_variable.h"
 
 #include "memory_pool.h"
index 4d94941b75d6bc654718e54ecb68c58858a8bdc4..69afb4caeaaed8ba58b2b68f4041607cbda9bf60 100644 (file)
@@ -20,6 +20,7 @@
  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  * USE OR OTHER DEALINGS IN THE SOFTWARE. */
 
+#include <stdio.h>
 #include "r300_tgsi_to_rc.h"
 
 #include "compiler/radeon_compiler.h"