summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen6_blorp.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-04-22 14:32:48 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-26 14:55:22 -0700
commitb3f08b5424f581092b375c335c722fced25fb40e (patch)
tree881af4800aa7303731c743127ca92ef94f106756 /src/mesa/drivers/dri/i965/gen6_blorp.cpp
parent33fa12c50f2e5e4fd4cfde1234ed6fdcc612fe92 (diff)
downloadexternal_mesa3d-b3f08b5424f581092b375c335c722fced25fb40e.zip
external_mesa3d-b3f08b5424f581092b375c335c722fced25fb40e.tar.gz
external_mesa3d-b3f08b5424f581092b375c335c722fced25fb40e.tar.bz2
i965/blorp: Turn brw_blorp_params into a C-style struct
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen6_blorp.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/gen6_blorp.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_blorp.cpp b/src/mesa/drivers/dri/i965/gen6_blorp.cpp
index 1f4104b..5498070 100644
--- a/src/mesa/drivers/dri/i965/gen6_blorp.cpp
+++ b/src/mesa/drivers/dri/i965/gen6_blorp.cpp
@@ -79,7 +79,7 @@ gen6_blorp_emit_vertex_buffer_state(struct brw_context *brw,
void
gen6_blorp_emit_vertices(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
uint32_t vertex_offset;
@@ -188,7 +188,7 @@ gen6_blorp_emit_vertices(struct brw_context *brw,
*/
static void
gen6_blorp_emit_urb_config(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
BEGIN_BATCH(3);
OUT_BATCH(_3DSTATE_URB << 16 | (3 - 2));
@@ -201,7 +201,7 @@ gen6_blorp_emit_urb_config(struct brw_context *brw,
/* BLEND_STATE */
uint32_t
gen6_blorp_emit_blend_state(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
uint32_t cc_blend_state_offset;
@@ -252,7 +252,7 @@ gen6_blorp_emit_cc_state(struct brw_context *brw)
*/
uint32_t
gen6_blorp_emit_depth_stencil_state(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
uint32_t depthstencil_offset;
@@ -287,7 +287,7 @@ gen6_blorp_emit_depth_stencil_state(struct brw_context *brw,
*/
static void
gen6_blorp_emit_cc_state_pointers(struct brw_context *brw,
- const brw_blorp_params *params,
+ const struct brw_blorp_params *params,
uint32_t cc_blend_state_offset,
uint32_t depthstencil_offset,
uint32_t cc_state_offset)
@@ -304,7 +304,7 @@ gen6_blorp_emit_cc_state_pointers(struct brw_context *brw,
/* WM push constants */
uint32_t
gen6_blorp_emit_wm_constants(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
uint32_t wm_push_const_offset;
@@ -323,7 +323,7 @@ gen6_blorp_emit_wm_constants(struct brw_context *brw,
*/
static uint32_t
gen6_blorp_emit_surface_state(struct brw_context *brw,
- const brw_blorp_params *params,
+ const struct brw_blorp_params *params,
const struct brw_blorp_surface_info *surface,
uint32_t read_domains, uint32_t write_domain)
{
@@ -484,7 +484,7 @@ gen6_blorp_emit_sampler_state_pointers(struct brw_context *brw,
*/
void
gen6_blorp_emit_vs_disable(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
/* From the BSpec, 3D Pipeline > Geometry > Vertex Shader > State,
* 3DSTATE_VS, Dword 5.0 "VS Function Enable":
@@ -523,7 +523,7 @@ gen6_blorp_emit_vs_disable(struct brw_context *brw,
*/
void
gen6_blorp_emit_gs_disable(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
/* Disable all the constant buffers. */
BEGIN_BATCH(5);
@@ -593,7 +593,7 @@ gen6_blorp_emit_clip_disable(struct brw_context *brw)
*/
static void
gen6_blorp_emit_sf_config(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
BEGIN_BATCH(20);
OUT_BATCH(_3DSTATE_SF << 16 | (20 - 2));
@@ -614,7 +614,7 @@ gen6_blorp_emit_sf_config(struct brw_context *brw,
*/
static void
gen6_blorp_emit_wm_config(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
const struct brw_blorp_prog_data *prog_data = params->wm_prog_data;
uint32_t dw2, dw4, dw5, dw6;
@@ -687,7 +687,7 @@ gen6_blorp_emit_wm_config(struct brw_context *brw,
static void
gen6_blorp_emit_constant_ps(struct brw_context *brw,
- const brw_blorp_params *params,
+ const struct brw_blorp_params *params,
uint32_t wm_push_const_offset)
{
/* Make sure the push constants fill an exact integer number of
@@ -712,7 +712,7 @@ gen6_blorp_emit_constant_ps(struct brw_context *brw,
static void
gen6_blorp_emit_constant_ps_disable(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
/* Disable the push constant buffers. */
BEGIN_BATCH(5);
@@ -744,7 +744,7 @@ gen6_blorp_emit_binding_table_pointers(struct brw_context *brw,
static void
gen6_blorp_emit_depth_stencil_config(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
uint32_t surfwidth, surfheight;
uint32_t surftype;
@@ -859,7 +859,7 @@ gen6_blorp_emit_depth_stencil_config(struct brw_context *brw,
static void
gen6_blorp_emit_depth_disable(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
brw_emit_depth_stall_flushes(brw);
@@ -896,7 +896,7 @@ gen6_blorp_emit_depth_disable(struct brw_context *brw,
*/
static void
gen6_blorp_emit_clear_params(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
BEGIN_BATCH(2);
OUT_BATCH(_3DSTATE_CLEAR_PARAMS << 16 |
@@ -910,7 +910,7 @@ gen6_blorp_emit_clear_params(struct brw_context *brw,
/* 3DSTATE_DRAWING_RECTANGLE */
void
gen6_blorp_emit_drawing_rectangle(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
BEGIN_BATCH(4);
OUT_BATCH(_3DSTATE_DRAWING_RECTANGLE << 16 | (4 - 2));
@@ -924,7 +924,7 @@ gen6_blorp_emit_drawing_rectangle(struct brw_context *brw,
/* 3DSTATE_VIEWPORT_STATE_POINTERS */
void
gen6_blorp_emit_viewport_state(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
struct brw_cc_viewport *ccv;
uint32_t cc_vp_offset;
@@ -949,7 +949,7 @@ gen6_blorp_emit_viewport_state(struct brw_context *brw,
/* 3DPRIMITIVE */
static void
gen6_blorp_emit_primitive(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
BEGIN_BATCH(6);
OUT_BATCH(CMD_3D_PRIM << 16 | (6 - 2) |
@@ -974,7 +974,7 @@ gen6_blorp_emit_primitive(struct brw_context *brw,
*/
void
gen6_blorp_exec(struct brw_context *brw,
- const brw_blorp_params *params)
+ const struct brw_blorp_params *params)
{
uint32_t cc_blend_state_offset = 0;
uint32_t cc_state_offset = 0;