diff options
author | Kenneth Graunke <[email protected]> | 2016-09-08 23:48:53 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-10-05 19:21:33 -0700 |
commit | ff366f3db4a117244c6076e5babd440c912200f9 (patch) | |
tree | ff446313329f3a6c367a65f6852df54d2c6366e4 /src/mesa/drivers/dri/i965/gen7_urb.c | |
parent | e512941537fbc25e97ecd778433e130769e2c6ec (diff) |
i965: Eliminate brw->gs.prog_data pointer.
Just say no to:
- brw->gs.base.prog_data = &brw->gs.prog_data->base.base;
We'll just use the brw_stage_prog_data pointer in brw_stage_state
and downcast it to brw_gs_prog_data as needed.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_urb.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_urb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_urb.c b/src/mesa/drivers/dri/i965/gen7_urb.c index 30ae87147eb..b60bd23b49f 100644 --- a/src/mesa/drivers/dri/i965/gen7_urb.c +++ b/src/mesa/drivers/dri/i965/gen7_urb.c @@ -211,7 +211,9 @@ gen7_upload_urb(struct brw_context *brw, unsigned vs_size, /* BRW_NEW_VS_PROG_DATA */ unsigned vs_entry_size_bytes = vs_size * 64; /* BRW_NEW_GEOMETRY_PROGRAM, BRW_NEW_GS_PROG_DATA */ - unsigned gs_size = gs_present ? brw->gs.prog_data->base.urb_entry_size : 1; + const struct brw_vue_prog_data *gs_vue_prog_data = + brw_vue_prog_data(brw->gs.base.prog_data); + unsigned gs_size = gs_present ? gs_vue_prog_data->urb_entry_size : 1; unsigned gs_entry_size_bytes = gs_size * 64; /* BRW_NEW_TCS_PROG_DATA */ |