mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
i965: Make the driver compile until a proper libdrm can be released.
No depending on unreleased code.
This commit is contained in:
parent
f0f202e6b7
commit
bd4596efac
2 changed files with 10 additions and 5 deletions
|
|
@ -714,12 +714,10 @@ brwCreateContext(gl_api api,
|
|||
}
|
||||
|
||||
/* Notification of GPU resets requires hardware contexts and a kernel new
|
||||
* enough to support DRM_IOCTL_I915_GET_RESET_STATS.
|
||||
* enough to support DRM_IOCTL_I915_GET_RESET_STATS, which isn't upstream
|
||||
* yet.
|
||||
*/
|
||||
if (notify_reset &&
|
||||
(brw->hw_ctx == NULL
|
||||
|| drm_intel_get_reset_stats(brw->hw_ctx, &brw->reset_count, NULL,
|
||||
NULL))) {
|
||||
if (notify_reset) {
|
||||
/* This is the wrong error code, but the correct error code (one that
|
||||
* will cause EGL to generate EGL_BAD_MATCH) doesn't seem to exist.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -42,10 +42,17 @@ brw_get_graphics_reset_status(struct gl_context *ctx)
|
|||
*/
|
||||
assert(brw->hw_ctx != NULL);
|
||||
|
||||
#if 0
|
||||
/* This is waiting until the kernel code can be merged and a new libdrm
|
||||
* actually released.
|
||||
*/
|
||||
err = drm_intel_get_reset_stats(brw->hw_ctx, &reset_count, &active,
|
||||
&pending);
|
||||
if (err)
|
||||
return GL_NO_ERROR;
|
||||
#else
|
||||
return GL_NO_ERROR;
|
||||
#endif
|
||||
|
||||
/* A reset was observed while a batch from this context was executing.
|
||||
* Assume that this context was at fault.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue