mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
i965: Allow old begin/end queryobj for gen4/5 with HW contexts
Since we have HW contexts on gen4/5, we could take advantage of them, as done for gen6+ in commite32cd5ffbb("i965: Rely on hardware contexts for query objects on Gen6+."), to only emit a pair of counters at begin/end queryobj, rather than around every primitive. However, to keep queryobj working in the meantime as we bringup support for HW ctx on gen4/5, we can keep using the existing code. References:e32cd5ffbb("i965: Rely on hardware contexts for query objects on Gen6+.") Cc: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
d1465b3aee
commit
a68873f668
1 changed files with 0 additions and 6 deletions
|
|
@ -480,9 +480,6 @@ brw_emit_query_begin(struct brw_context *brw)
|
|||
struct gl_context *ctx = &brw->ctx;
|
||||
struct brw_query_object *query = brw->query.obj;
|
||||
|
||||
if (brw->hw_ctx)
|
||||
return;
|
||||
|
||||
/* Skip if we're not doing any queries, or we've already recorded the
|
||||
* initial query value for this batchbuffer.
|
||||
*/
|
||||
|
|
@ -507,9 +504,6 @@ brw_emit_query_end(struct brw_context *brw)
|
|||
{
|
||||
struct brw_query_object *query = brw->query.obj;
|
||||
|
||||
if (brw->hw_ctx)
|
||||
return;
|
||||
|
||||
if (!brw->query.begin_emitted)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue