#include "intel_be_api.h"
+#include "i915simple/i915_winsys.h"
struct drm_api drm_api_hocks =
{
/* intel_be_context.c */
.create_context = intel_be_create_context,
- /* intel_be_screen.c */
+ /* intel_be_device.c */
.create_screen = intel_be_create_screen,
+ .buffer_from_texture = i915_get_texture_buffer,
.buffer_from_handle = intel_be_buffer_from_handle,
.handle_from_buffer = intel_be_handle_from_buffer,
};
}
struct pipe_buffer *
-intel_be_buffer_from_handle(struct pipe_winsys *winsys,
+intel_be_buffer_from_handle(struct pipe_screen *screen,
const char* name, unsigned handle)
{
- struct intel_be_device *dev = intel_be_device(winsys);
+ struct intel_be_device *dev = intel_be_device(screen->winsys);
struct intel_be_buffer *buffer = CALLOC_STRUCT(intel_be_buffer);
if (!buffer)
}
unsigned
-intel_be_handle_from_buffer(struct pipe_winsys *winsys,
+intel_be_handle_from_buffer(struct pipe_screen *screen,
struct pipe_buffer *buf)
{
drm_intel_bo *bo = intel_bo(buf);
* Takes a reference.
*/
struct pipe_buffer *
-intel_be_buffer_from_handle(struct pipe_winsys *winsys,
+intel_be_buffer_from_handle(struct pipe_screen *screen,
const char* name, unsigned handle);
/**
* If buffer is destroyed handle may become invalid.
*/
unsigned
-intel_be_handle_from_buffer(struct pipe_winsys *winsys,
+intel_be_handle_from_buffer(struct pipe_screen *screen,
struct pipe_buffer *buffer);
static INLINE struct intel_be_buffer *