mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
tests/gem_ringfill: Exercise all rings
On SandyBridge, the BLT commands were split from the RENDER commands as well as the BSD split inherited from Ironlake. So we need to make sure we do exercise each ring, and in order to do so we also need to make sure each batch takes longer to execute than it takes for us to submit it. v2: Exercise each ring sequentially. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
committed by
Daniel Vetter
parent
5cf5558682
commit
fa6c2757fe
@@ -25,6 +25,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef INTEL_GPU_TOOLS_H
|
||||
#define INTEL_GPU_TOOLS_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
#include <pciaccess.h>
|
||||
@@ -94,3 +97,5 @@ extern enum pch_type pch;
|
||||
void intel_check_pch(void);
|
||||
|
||||
#define HAS_CPT (pch == PCH_CPT)
|
||||
|
||||
#endif /* INTEL_GPU_TOOLS_H */
|
||||
|
||||
@@ -58,6 +58,11 @@ static inline unsigned buf_height(struct scratch_buf *buf)
|
||||
return buf->size/buf->stride;
|
||||
}
|
||||
|
||||
typedef void (*render_copyfunc_t)(struct intel_batchbuffer *batch,
|
||||
struct scratch_buf *src, unsigned src_x, unsigned src_y,
|
||||
unsigned width, unsigned height,
|
||||
struct scratch_buf *dst, unsigned dst_x, unsigned dst_y);
|
||||
|
||||
void gen6_render_copyfunc(struct intel_batchbuffer *batch,
|
||||
struct scratch_buf *src, unsigned src_x, unsigned src_y,
|
||||
unsigned width, unsigned height,
|
||||
|
||||
Reference in New Issue
Block a user