diff options
author | Jason Ekstrand <[email protected]> | 2016-08-08 15:33:43 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-08-17 14:46:22 -0700 |
commit | ce2a9831cce5e00cfe80468ccae7410aca28e9da (patch) | |
tree | aa7764367663319a4c54e25291e1eaaef90aef69 | |
parent | 934adf1c3073fce8f0a25e11fced0d7c7d744624 (diff) |
i965: brw_blorp_blit.cpp -> blorp_blit.c
Reviewed-by: Topi Pohjolainen <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/Makefile.sources | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/blorp_blit.c (renamed from src/mesa/drivers/dri/i965/brw_blorp_blit.cpp) | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/Makefile.sources b/src/mesa/drivers/dri/i965/Makefile.sources index 45af1d4b00c..02705a1b775 100644 --- a/src/mesa/drivers/dri/i965/Makefile.sources +++ b/src/mesa/drivers/dri/i965/Makefile.sources @@ -97,10 +97,10 @@ i965_compiler_GENERATED_FILES = \ i965_FILES = \ blorp.c \ blorp.h \ + blorp_blit.c \ blorp_clear.c \ blorp_priv.h \ brw_binding_tables.c \ - brw_blorp_blit.cpp \ brw_blorp.c \ brw_blorp.h \ brw_cc.c \ diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp b/src/mesa/drivers/dri/i965/blorp_blit.c index 53d8c34e430..97cc506dd0f 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp +++ b/src/mesa/drivers/dri/i965/blorp_blit.c @@ -96,7 +96,7 @@ brw_blorp_blit_vars_init(nir_builder *b, struct brw_blorp_blit_vars *v, v->color_out->data.location = FRAG_RESULT_COLOR; } -nir_ssa_def * +static nir_ssa_def * blorp_blit_get_frag_coords(nir_builder *b, const struct brw_blorp_blit_prog_key *key, struct brw_blorp_blit_vars *v) @@ -115,7 +115,7 @@ blorp_blit_get_frag_coords(nir_builder *b, * Emit code to translate from destination (X, Y) coordinates to source (X, Y) * coordinates. */ -nir_ssa_def * +static nir_ssa_def * blorp_blit_apply_transform(nir_builder *b, nir_ssa_def *src_pos, struct brw_blorp_blit_vars *v) { @@ -734,7 +734,7 @@ nir_imm_vec2(nir_builder *build, float x, float y) static nir_ssa_def * blorp_nir_manual_blend_bilinear(nir_builder *b, nir_ssa_def *pos, unsigned tex_samples, - const brw_blorp_blit_prog_key *key, + const struct brw_blorp_blit_prog_key *key, struct brw_blorp_blit_vars *v) { nir_ssa_def *pos_xy = nir_channels(b, pos, 0x3); @@ -1002,7 +1002,7 @@ blorp_nir_manual_blend_bilinear(nir_builder *b, nir_ssa_def *pos, */ static nir_shader * brw_blorp_build_nir_shader(struct brw_context *brw, - const brw_blorp_blit_prog_key *key) + const struct brw_blorp_blit_prog_key *key) { nir_ssa_def *src_pos, *dst_pos, *color; @@ -1317,7 +1317,7 @@ surf_convert_to_single_slice(struct brw_context *brw, /* TODO: Once this file gets converted to C, we shouls just use designated * initializers. */ - struct isl_surf_init_info init_info = isl_surf_init_info(); + struct isl_surf_init_info init_info = { 0, }; init_info.dim = ISL_SURF_DIM_2D; init_info.format = ISL_FORMAT_R8_UINT; |