Subversion Repositories Kolibri OS

Rev

Rev 5368 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5368 Rev 6110
Line 27... Line 27...
27
#include 
27
#include 
28
#include 
28
#include 
29
#include 
29
#include 
30
#include 
30
#include 
Line -... Line 31...
-
 
31
 
31
 
32
#include "libdrm_macros.h"
32
#include "xf86drm.h"
33
#include "xf86drm.h"
33
#include "intel_chipset.h"
34
#include "intel_chipset.h"
Line -... Line 35...
-
 
35
#include "intel_bufmgr.h"
-
 
36
 
-
 
37
/* The compiler throws ~90 warnings. Do not spam the build, until we fix them. */
34
#include "intel_bufmgr.h"
38
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
35
 
39
 
36
/* Struct for tracking drm_intel_decode state. */
40
/* Struct for tracking drm_intel_decode state. */
37
struct drm_intel_decode {
41
struct drm_intel_decode {
Line 3623... Line 3627...
3623
 
3627
 
Line 3624... Line 3628...
3624
		return len;
3628
		return len;
3625
 
3629
 
3626
	case 0x7a00:
-
 
3627
		if (IS_GEN6(devid) || IS_GEN7(devid)) {
3630
	case 0x7a00:
3628
			unsigned int i;
3631
		if (IS_GEN6(devid) || IS_GEN7(devid)) {
Line 3629... Line 3632...
3629
			if (len != 4 && len != 5)
3632
			if (len != 4 && len != 5)
3630
				fprintf(out, "Bad count in PIPE_CONTROL\n");
3633
				fprintf(out, "Bad count in PIPE_CONTROL\n");
Line 3725... Line 3728...
3725
 
3728
 
3726
	if (opcode_3d) {
3729
	if (opcode_3d) {
3727
		if (opcode_3d->func) {
3730
		if (opcode_3d->func) {
3728
			return opcode_3d->func(ctx);
3731
			return opcode_3d->func(ctx);
3729
		} else {
-
 
3730
			unsigned int i;
-
 
3731
 
3732
		} else {
Line 3732... Line 3733...
3732
			instr_out(ctx, 0, "%s\n", opcode_3d->name);
3733
			instr_out(ctx, 0, "%s\n", opcode_3d->name);
3733
 
3734
 
3734
			for (i = 1; i < len; i++) {
3735
			for (i = 1; i < len; i++) {
Line 3822... Line 3823...
3822
		return NULL;
3823
		return NULL;
Line 3823... Line 3824...
3823
 
3824
 
3824
	ctx->devid = devid;
3825
	ctx->devid = devid;
Line 3825... Line 3826...
3825
	ctx->out = stdout;
3826
	ctx->out = stdout;
-
 
3827
 
-
 
3828
	if (IS_GEN9(devid))
3826
 
3829
		ctx->gen = 9;
3827
	if (IS_GEN8(devid))
3830
	else if (IS_GEN8(devid))
3828
		ctx->gen = 8;
3831
		ctx->gen = 8;
3829
	else if (IS_GEN7(devid))
3832
	else if (IS_GEN7(devid))
3830
		ctx->gen = 7;
3833
		ctx->gen = 7;
Line 3874... Line 3877...
3874
	ctx->tail = tail;
3877
	ctx->tail = tail;
3875
}
3878
}
Line 3876... Line 3879...
3876
 
3879
 
3877
void
3880
void
3878
drm_intel_decode_set_output_file(struct drm_intel_decode *ctx,
3881
drm_intel_decode_set_output_file(struct drm_intel_decode *ctx,
3879
				 FILE *out)
3882
				 FILE *output)
3880
{
3883
{
3881
	ctx->out = out;
3884
	ctx->out = output;
Line 3882... Line 3885...
3882
}
3885
}
3883
 
3886
 
3884
/**
3887
/**