mirror of
https://review.haiku-os.org/haiku
synced 2025-01-19 13:01:29 +01:00
vesa & framebuffer accelerants: Drop engine hook stubs.
We don't need to provide them after the previous commit.
This commit is contained in:
parent
2270ca94f1
commit
e3056a7eff
@ -7,7 +7,6 @@ UsePrivateHeaders shared ;
|
||||
|
||||
Addon framebuffer.accelerant :
|
||||
accelerant.cpp
|
||||
engine.cpp
|
||||
hooks.cpp
|
||||
mode.cpp
|
||||
: libaccelerantscommon.a
|
||||
|
@ -3,8 +3,8 @@
|
||||
* Copyright 2016, Jessica Hamilton, jessica.l.hamilton@gmail.com.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef VESA_ACCELERANT_H
|
||||
#define VESA_ACCELERANT_H
|
||||
#ifndef FRAMEBUFFER_ACCELERANT_H
|
||||
#define FRAMEBUFFER_ACCELERANT_H
|
||||
|
||||
|
||||
#include "vesa_info.h"
|
||||
@ -27,4 +27,4 @@ extern accelerant_info *gInfo;
|
||||
|
||||
extern status_t create_mode_list(void);
|
||||
|
||||
#endif /* VESA_ACCELERANT_H */
|
||||
#endif /* FRAMEBUFFER_ACCELERANT_H */
|
||||
|
@ -33,15 +33,6 @@ status_t framebuffer_get_frame_buffer_config(frame_buffer_config *config);
|
||||
status_t framebuffer_get_pixel_clock_limits(display_mode *dm, uint32 *low,
|
||||
uint32 *high);
|
||||
|
||||
// accelerant engine
|
||||
uint32 framebuffer_accelerant_engine_count(void);
|
||||
status_t framebuffer_acquire_engine(uint32 capabilities, uint32 maxWait,
|
||||
sync_token *st, engine_token **et);
|
||||
status_t framebuffer_release_engine(engine_token *et, sync_token *st);
|
||||
void framebuffer_wait_engine_idle(void);
|
||||
status_t framebuffer_get_sync_token(engine_token *et, sync_token *st);
|
||||
status_t framebuffer_sync_to_token(sync_token *st);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include "accelerant_protos.h"
|
||||
#include "vesa_info.h"
|
||||
|
||||
|
||||
static engine_token sEngineToken = {1, 0 /*B_2D_ACCELERATION*/, NULL};
|
||||
|
||||
|
||||
uint32
|
||||
framebuffer_accelerant_engine_count(void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
framebuffer_acquire_engine(uint32 capabilities, uint32 max_wait, sync_token *syncToken,
|
||||
engine_token **_engineToken)
|
||||
{
|
||||
*_engineToken = &sEngineToken;
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
framebuffer_release_engine(engine_token *engineToken, sync_token *syncToken)
|
||||
{
|
||||
if (syncToken != NULL)
|
||||
syncToken->engine_id = engineToken->engine_id;
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
framebuffer_wait_engine_idle(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
framebuffer_get_sync_token(engine_token *engineToken, sync_token *syncToken)
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
framebuffer_sync_to_token(sync_token *syncToken)
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
|
@ -44,20 +44,6 @@ get_accelerant_hook(uint32 feature, void* data)
|
||||
return (void*)framebuffer_get_frame_buffer_config;
|
||||
case B_GET_PIXEL_CLOCK_LIMITS:
|
||||
return (void*)framebuffer_get_pixel_clock_limits;
|
||||
|
||||
/* engine/synchronization */
|
||||
case B_ACCELERANT_ENGINE_COUNT:
|
||||
return (void*)framebuffer_accelerant_engine_count;
|
||||
case B_ACQUIRE_ENGINE:
|
||||
return (void*)framebuffer_acquire_engine;
|
||||
case B_RELEASE_ENGINE:
|
||||
return (void*)framebuffer_release_engine;
|
||||
case B_WAIT_ENGINE_IDLE:
|
||||
return (void*)framebuffer_wait_engine_idle;
|
||||
case B_GET_SYNC_TOKEN:
|
||||
return (void*)framebuffer_get_sync_token;
|
||||
case B_SYNC_TO_TOKEN:
|
||||
return (void*)framebuffer_sync_to_token;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
@ -10,7 +10,6 @@ UsePrivateHeaders shared ;
|
||||
Addon vesa.accelerant :
|
||||
accelerant.cpp
|
||||
dpms.cpp
|
||||
engine.cpp
|
||||
hooks.cpp
|
||||
mode.cpp
|
||||
: libaccelerantscommon.a
|
||||
|
@ -53,15 +53,6 @@ status_t vesa_set_cursor_bitmap(uint16 width, uint16 height, uint16 hotX,
|
||||
void vesa_move_cursor(uint16 x, uint16 y);
|
||||
void vesa_show_cursor(bool is_visible);
|
||||
|
||||
// accelerant engine
|
||||
uint32 vesa_accelerant_engine_count(void);
|
||||
status_t vesa_acquire_engine(uint32 capabilities, uint32 maxWait,
|
||||
sync_token *st, engine_token **et);
|
||||
status_t vesa_release_engine(engine_token *et, sync_token *st);
|
||||
void vesa_wait_engine_idle(void);
|
||||
status_t vesa_get_sync_token(engine_token *et, sync_token *st);
|
||||
status_t vesa_sync_to_token(sync_token *st);
|
||||
|
||||
// 2D acceleration
|
||||
void vesa_screen_to_screen_blit(engine_token *et, blit_params *list,
|
||||
uint32 count);
|
||||
|
@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include "accelerant_protos.h"
|
||||
#include "vesa_info.h"
|
||||
|
||||
|
||||
static engine_token sEngineToken = {1, 0 /*B_2D_ACCELERATION*/, NULL};
|
||||
|
||||
|
||||
uint32
|
||||
vesa_accelerant_engine_count(void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
vesa_acquire_engine(uint32 capabilities, uint32 max_wait, sync_token *syncToken,
|
||||
engine_token **_engineToken)
|
||||
{
|
||||
*_engineToken = &sEngineToken;
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
vesa_release_engine(engine_token *engineToken, sync_token *syncToken)
|
||||
{
|
||||
if (syncToken != NULL)
|
||||
syncToken->engine_id = engineToken->engine_id;
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
vesa_wait_engine_idle(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
vesa_get_sync_token(engine_token *engineToken, sync_token *syncToken)
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
vesa_sync_to_token(sync_token *syncToken)
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
|
@ -256,20 +256,6 @@ get_accelerant_hook(uint32 feature, void* data)
|
||||
return (void*)vesa_set_cursor_bitmap;
|
||||
#endif
|
||||
|
||||
/* engine/synchronization */
|
||||
case B_ACCELERANT_ENGINE_COUNT:
|
||||
return (void*)vesa_accelerant_engine_count;
|
||||
case B_ACQUIRE_ENGINE:
|
||||
return (void*)vesa_acquire_engine;
|
||||
case B_RELEASE_ENGINE:
|
||||
return (void*)vesa_release_engine;
|
||||
case B_WAIT_ENGINE_IDLE:
|
||||
return (void*)vesa_wait_engine_idle;
|
||||
case B_GET_SYNC_TOKEN:
|
||||
return (void*)vesa_get_sync_token;
|
||||
case B_SYNC_TO_TOKEN:
|
||||
return (void*)vesa_sync_to_token;
|
||||
|
||||
#if FAKE_OVERLAY_SUPPORT
|
||||
// overlay
|
||||
case B_OVERLAY_COUNT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user