summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-09-27 14:46:26 -0700
committerKenneth Graunke <[email protected]>2013-10-13 00:10:44 -0700
commitf118fc26e14b460e1dfb735892b1627948f592fc (patch)
tree440a414f43884a9f1d68610a0e37229927163d8d /src
parent9848a422879e0b5fef5930bfcb105b01d94f3bab (diff)
i965: Make brwInitFunctions take brw_context rather than intel_screen.
It actually just wants generation checking, and brw->gen is the usual way of doing that. In the future, we'll also want to check brw->hw_ctx, which isn't available from the screen. While we're changing the function signature, convert from camel case to our usual naming conventions. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 740a33ae4d5..19b03f8078c 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -209,8 +209,8 @@ intelFinish(struct gl_context * ctx)
}
static void
-brwInitDriverFunctions(struct intel_screen *screen,
- struct dd_function_table *functions)
+brw_init_driver_functions(struct brw_context *brw,
+ struct dd_function_table *functions)
{
_mesa_init_driver_functions(functions);
@@ -232,14 +232,14 @@ brwInitDriverFunctions(struct intel_screen *screen,
brwInitFragProgFuncs( functions );
brw_init_common_queryobj_functions(functions);
- if (screen->devinfo->gen >= 6)
+ if (brw->gen >= 6)
gen6_init_queryobj_functions(functions);
else
gen4_init_queryobj_functions(functions);
functions->QuerySamplesForFormat = brw_query_samples_for_format;
- if (screen->devinfo->gen >= 7) {
+ if (brw->gen >= 7) {
functions->BeginTransformFeedback = gen7_begin_transform_feedback;
functions->EndTransformFeedback = gen7_end_transform_feedback;
} else {
@@ -247,7 +247,7 @@ brwInitDriverFunctions(struct intel_screen *screen,
functions->EndTransformFeedback = brw_end_transform_feedback;
}
- if (screen->devinfo->gen >= 6)
+ if (brw->gen >= 6)
functions->GetSamplePosition = gen6_get_sample_position;
}
@@ -520,7 +520,7 @@ brwCreateContext(gl_api api,
brwInitVtbl( brw );
- brwInitDriverFunctions(screen, &functions);
+ brw_init_driver_functions(brw, &functions);
struct gl_context *ctx = &brw->ctx;