i965: remove includes of sampler.h from extern "C" blocks
authorMark Janes <mark.a.janes@intel.com>
Tue, 16 Dec 2014 22:29:28 +0000 (14:29 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Dec 2014 23:39:55 +0000 (15:39 -0800)
C linkage was removed from functions in program/sampler.cpp.  However,
some cpp files include program/sampler.h within extern "C" blocks,
causing link errors for test_vec4_copy_propagation.

Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 6cac6d7cdb44bba3aaff9cc83db0d0ddf9b61689..578d8c1264af898f2d5e8a7559ed06dfe91f356b 100644 (file)
@@ -39,7 +39,6 @@ extern "C" {
 #include "program/prog_parameter.h"
 #include "program/prog_print.h"
 #include "util/register_allocate.h"
-#include "program/sampler.h"
 #include "program/hash_table.h"
 #include "brw_context.h"
 #include "brw_eu.h"
@@ -51,6 +50,7 @@ extern "C" {
 #include "main/uniforms.h"
 #include "brw_fs_live_variables.h"
 #include "glsl/glsl_types.h"
+#include "program/sampler.h"
 
 void
 fs_inst::init(enum opcode opcode, uint8_t exec_size, const fs_reg &dst,
index 58bb3ae1ce006c830185dcd84f5eefc984225e60..06575a54753ebaaac9fa42b3bad02dad2a45ff76 100644 (file)
@@ -40,7 +40,6 @@ extern "C" {
 #include "program/prog_print.h"
 #include "program/prog_optimize.h"
 #include "util/register_allocate.h"
-#include "program/sampler.h"
 #include "program/hash_table.h"
 #include "brw_context.h"
 #include "brw_eu.h"
@@ -50,6 +49,7 @@ extern "C" {
 }
 #include "glsl/glsl_types.h"
 #include "glsl/ir.h"
+#include "program/sampler.h"
 
 #define MAX_SAMPLER_MESSAGE_SIZE 11
 #define MAX_VGRF_SIZE 16
index 399e772e3c54f9534b528ee09b12edd9c1e01a7a..bd9345ebef24542ec78ff4361234f686fcb32be2 100644 (file)
@@ -37,7 +37,6 @@ extern "C" {
 #include "program/prog_print.h"
 #include "program/prog_optimize.h"
 #include "util/register_allocate.h"
-#include "program/sampler.h"
 #include "program/hash_table.h"
 #include "brw_context.h"
 #include "brw_eu.h"
@@ -48,6 +47,8 @@ extern "C" {
 #include "main/uniforms.h"
 #include "glsl/glsl_types.h"
 #include "glsl/ir_optimization.h"
+#include "program/sampler.h"
+
 
 fs_reg *
 fs_visitor::emit_vs_system_value(enum brw_reg_type type, int location)
index 723878888af8c243a58bcbf68c2113c3982b2a0a..09d79c83704c02de44d5c41261c1ddcf43e5bbd4 100644 (file)
@@ -24,9 +24,7 @@
 #include "brw_vec4.h"
 #include "brw_cfg.h"
 #include "glsl/ir_uniform.h"
-extern "C" {
 #include "program/sampler.h"
-}
 
 namespace brw {