2009-07-26 23:44:38 +01:00
|
|
|
/**************************************************************************
|
|
|
|
*
|
s/Tungsten Graphics/VMware/
Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the
old copyright name is creating unnecessary confusion, hence this change.
This was the sed script I used:
$ cat tg2vmw.sed
# Run as:
#
# git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed
#
# Rename copyrights
s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g
/Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./
s/TUNGSTEN GRAPHICS/VMWARE/g
# Rename emails
s/alanh@tungstengraphics.com/alanh@vmware.com/
s/jens@tungstengraphics.com/jowen@vmware.com/g
s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/
s/jrfonseca\?@tungstengraphics.com/jfonseca@vmware.com/g
s/keithw\?@tungstengraphics.com/keithw@vmware.com/g
s/michel@tungstengraphics.com/daenzer@vmware.com/g
s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/
s/zack@tungstengraphics.com/zackr@vmware.com/
# Remove dead links
s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g
# C string src/gallium/state_trackers/vega/api_misc.c
s/"Tungsten Graphics, Inc"/"VMware, Inc"/
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-01-17 16:27:50 +00:00
|
|
|
* Copyright 2007 VMware, Inc.
|
2010-05-06 11:45:42 -06:00
|
|
|
* Copyright 2010 VMware, Inc.
|
2009-07-26 23:44:38 +01:00
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the
|
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
* distribute, sub license, and/or sell copies of the Software, and to
|
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
|
* the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice (including the
|
|
|
|
* next paragraph) shall be included in all copies or substantial portions
|
|
|
|
* of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
s/Tungsten Graphics/VMware/
Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the
old copyright name is creating unnecessary confusion, hence this change.
This was the sed script I used:
$ cat tg2vmw.sed
# Run as:
#
# git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed
#
# Rename copyrights
s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g
/Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./
s/TUNGSTEN GRAPHICS/VMWARE/g
# Rename emails
s/alanh@tungstengraphics.com/alanh@vmware.com/
s/jens@tungstengraphics.com/jowen@vmware.com/g
s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/
s/jrfonseca\?@tungstengraphics.com/jfonseca@vmware.com/g
s/keithw\?@tungstengraphics.com/keithw@vmware.com/g
s/michel@tungstengraphics.com/daenzer@vmware.com/g
s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/
s/zack@tungstengraphics.com/zackr@vmware.com/
# Remove dead links
s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g
# C string src/gallium/state_trackers/vega/api_misc.c
s/"Tungsten Graphics, Inc"/"VMware, Inc"/
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-01-17 16:27:50 +00:00
|
|
|
* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
|
2009-07-26 23:44:38 +01:00
|
|
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*
|
|
|
|
**************************************************************************/
|
|
|
|
|
2010-05-06 11:45:42 -06:00
|
|
|
/* Authors:
|
|
|
|
* Keith Whitwell, Qicheng Christopher Li, Brian Paul
|
2009-07-26 23:44:38 +01:00
|
|
|
*/
|
|
|
|
|
2009-07-27 11:36:24 +01:00
|
|
|
#ifndef LP_QUERY_H
|
|
|
|
#define LP_QUERY_H
|
2009-07-26 23:44:38 +01:00
|
|
|
|
2010-05-06 11:45:42 -06:00
|
|
|
#include <limits.h>
|
|
|
|
#include "os/os_thread.h"
|
|
|
|
#include "lp_limits.h"
|
|
|
|
|
|
|
|
|
2009-07-26 23:44:38 +01:00
|
|
|
struct llvmpipe_context;
|
2010-05-06 11:45:42 -06:00
|
|
|
|
|
|
|
|
|
|
|
struct llvmpipe_query {
|
2013-06-25 23:27:04 +02:00
|
|
|
uint64_t start[LP_MAX_THREADS]; /* start count value for each thread */
|
|
|
|
uint64_t end[LP_MAX_THREADS]; /* end count value for each thread */
|
2012-12-03 07:00:37 +00:00
|
|
|
struct lp_fence *fence; /* fence from last scene this was binned in */
|
|
|
|
unsigned type; /* PIPE_QUERY_* */
|
2020-01-23 15:48:46 +10:00
|
|
|
unsigned index;
|
2020-03-27 13:29:59 +10:00
|
|
|
unsigned num_primitives_generated[PIPE_MAX_VERTEX_STREAMS];
|
|
|
|
unsigned num_primitives_written[PIPE_MAX_VERTEX_STREAMS];
|
2013-04-11 06:11:29 -07:00
|
|
|
|
|
|
|
struct pipe_query_data_pipeline_statistics stats;
|
2010-05-06 11:45:42 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-07-26 23:44:38 +01:00
|
|
|
extern void llvmpipe_init_query_funcs(struct llvmpipe_context * );
|
|
|
|
|
2011-11-07 17:31:49 +00:00
|
|
|
extern boolean llvmpipe_check_render_cond(struct llvmpipe_context *);
|
2009-07-26 23:44:38 +01:00
|
|
|
|
2009-07-27 11:36:24 +01:00
|
|
|
#endif /* LP_QUERY_H */
|