forked from KolibriOS/kolibrios
libdrm-2.4.66
git-svn-id: svn://kolibrios.org@6110 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -29,10 +29,14 @@
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libdrm_macros.h"
|
||||
#include "xf86drm.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "intel_bufmgr.h"
|
||||
|
||||
/* The compiler throws ~90 warnings. Do not spam the build, until we fix them. */
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
|
||||
/* Struct for tracking drm_intel_decode state. */
|
||||
struct drm_intel_decode {
|
||||
/** stdio file where the output should land. Defaults to stdout. */
|
||||
@@ -3625,7 +3629,6 @@ decode_3d_965(struct drm_intel_decode *ctx)
|
||||
|
||||
case 0x7a00:
|
||||
if (IS_GEN6(devid) || IS_GEN7(devid)) {
|
||||
unsigned int i;
|
||||
if (len != 4 && len != 5)
|
||||
fprintf(out, "Bad count in PIPE_CONTROL\n");
|
||||
|
||||
@@ -3727,8 +3730,6 @@ decode_3d_965(struct drm_intel_decode *ctx)
|
||||
if (opcode_3d->func) {
|
||||
return opcode_3d->func(ctx);
|
||||
} else {
|
||||
unsigned int i;
|
||||
|
||||
instr_out(ctx, 0, "%s\n", opcode_3d->name);
|
||||
|
||||
for (i = 1; i < len; i++) {
|
||||
@@ -3824,7 +3825,9 @@ drm_intel_decode_context_alloc(uint32_t devid)
|
||||
ctx->devid = devid;
|
||||
ctx->out = stdout;
|
||||
|
||||
if (IS_GEN8(devid))
|
||||
if (IS_GEN9(devid))
|
||||
ctx->gen = 9;
|
||||
else if (IS_GEN8(devid))
|
||||
ctx->gen = 8;
|
||||
else if (IS_GEN7(devid))
|
||||
ctx->gen = 7;
|
||||
@@ -3876,9 +3879,9 @@ drm_intel_decode_set_head_tail(struct drm_intel_decode *ctx,
|
||||
|
||||
void
|
||||
drm_intel_decode_set_output_file(struct drm_intel_decode *ctx,
|
||||
FILE *out)
|
||||
FILE *output)
|
||||
{
|
||||
ctx->out = out;
|
||||
ctx->out = output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user