i965/blorp: Convert state setup to C
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Apr 2016 21:48:36 +0000 (14:48 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 26 Apr 2016 21:55:22 +0000 (14:55 -0700)
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
configure.ac
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/gen6_blorp.c [moved from src/mesa/drivers/dri/i965/gen6_blorp.cpp with 99% similarity]
src/mesa/drivers/dri/i965/gen7_blorp.c [moved from src/mesa/drivers/dri/i965/gen7_blorp.cpp with 100% similarity]
src/mesa/drivers/dri/i965/gen8_blorp.c [moved from src/mesa/drivers/dri/i965/gen8_blorp.cpp with 100% similarity]

index 3556827..5f75c60 100644 (file)
@@ -2657,6 +2657,9 @@ AC_OUTPUT
 # Fix up dependencies in *.Plo files, where we changed the extension of a
 # source file
 $SED -i -e 's/brw_blorp.cpp/brw_blorp.c/' src/mesa/drivers/dri/i965/.deps/brw_blorp.Plo
+$SED -i -e 's/gen6_blorp.cpp/gen6_blorp.c/' src/mesa/drivers/dri/i965/.deps/gen6_blorp.Plo
+$SED -i -e 's/gen7_blorp.cpp/gen7_blorp.c/' src/mesa/drivers/dri/i965/.deps/gen7_blorp.Plo
+$SED -i -e 's/gen8_blorp.cpp/gen8_blorp.c/' src/mesa/drivers/dri/i965/.deps/gen8_blorp.Plo
 
 
 dnl
index fe70d3a..441d727 100644 (file)
@@ -177,7 +177,7 @@ i965_FILES = \
        brw_wm.h \
        brw_wm_state.c \
        brw_wm_surface_state.c \
-       gen6_blorp.cpp \
+       gen6_blorp.c \
        gen6_cc.c \
        gen6_clip_state.c \
        gen6_constant_state.c \
@@ -195,7 +195,7 @@ i965_FILES = \
        gen6_viewport_state.c \
        gen6_vs_state.c \
        gen6_wm_state.c \
-       gen7_blorp.cpp \
+       gen7_blorp.c \
        gen7_cs_state.c \
        gen7_ds_state.c \
        gen7_gs_state.c \
@@ -211,7 +211,7 @@ i965_FILES = \
        gen7_wm_state.c \
        gen7_wm_surface_state.c \
        gen8_blend_state.c \
-       gen8_blorp.cpp \
+       gen8_blorp.c \
        gen8_depth_state.c \
        gen8_disable.c \
        gen8_draw_upload.c \
similarity index 99%
rename from src/mesa/drivers/dri/i965/gen6_blorp.cpp
rename to src/mesa/drivers/dri/i965/gen6_blorp.c
index ee3276e..1955811 100644 (file)
@@ -1047,4 +1047,3 @@ gen6_blorp_exec(struct brw_context *brw,
    gen6_blorp_emit_drawing_rectangle(brw, params);
    gen6_blorp_emit_primitive(brw, params);
 }
-