diff options
author | Iago Toral Quiroga <[email protected]> | 2017-01-04 10:46:08 +0100 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2017-01-05 08:43:46 +0100 |
commit | a98f2e53e1c669dee3114badcce261e564748af4 (patch) | |
tree | 9afbfd07ffa4863f7085247752d5a92389fe9c1a /src/mesa/drivers/dri/i965/brw_context.c | |
parent | e3123c8ca22e9a9337af6179dfd8383259f3ccc6 (diff) |
i965: add a kernel_features bitfield to intel screen
We can use this to track various features that may or may not be supported
by the hw / kernel. Currently, we usually do this by checking the generation
and supported command parser versions in various places thoughtout the driver
code. With this patch, we centralize all these checks in just once place at
screen creation time, then we just query the bitfield wherever we need to
check if a particular feature is supported.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 3f3da7d2009..032b5ec16aa 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -468,7 +468,7 @@ brw_init_driver_functions(struct brw_context *brw, functions->NewTransformFeedback = brw_new_transform_feedback; functions->DeleteTransformFeedback = brw_delete_transform_feedback; - if (brw->screen->has_mi_math_and_lrr) { + if (can_do_mi_math_and_lrr(brw->screen)) { functions->BeginTransformFeedback = hsw_begin_transform_feedback; functions->EndTransformFeedback = hsw_end_transform_feedback; functions->PauseTransformFeedback = hsw_pause_transform_feedback; @@ -608,7 +608,7 @@ brw_initialize_context_constants(struct brw_context *brw) BRW_MAX_SOL_BINDINGS / BRW_MAX_SOL_BUFFERS; ctx->Const.AlwaysUseGetTransformFeedbackVertexCount = - !brw->screen->has_mi_math_and_lrr; + !can_do_mi_math_and_lrr(brw->screen); int max_samples; const int *msaa_modes = intel_supported_msaa_modes(brw->screen); |