{
int w = pl_vout_w, h = pl_vout_h;
+ if (h < 16)
+ return;
+
if (g_opts & OPT_SHOWSPU)
draw_active_chans(w, h);
flush_cmd_buffer();
renderer_flush_queues();
- if (gpu.status.blanking || !gpu.state.fb_dirty)
+ if (gpu.status.blanking) {
+ if (!gpu.state.blanked) {
+ vout_blank();
+ gpu.state.blanked = 1;
+ gpu.state.fb_dirty = 1;
+ }
+ return;
+ }
+
+ if (!gpu.state.fb_dirty)
return;
if (gpu.frameskip.set) {
vout_update();
gpu.state.fb_dirty = 0;
+ gpu.state.blanked = 0;
}
void GPUvBlank(int is_vblank, int lcf)
uint32_t fb_dirty:1;
uint32_t old_interlace:1;
uint32_t allow_interlace:2;
+ uint32_t blanked:1;
uint32_t *frame_count;
uint32_t *hcnt; /* hsync count */
struct {
int vout_init(void);
int vout_finish(void);
void vout_update(void);
+void vout_blank(void);
void vout_set_config(const struct rearmed_cbs *config);
/* listing these here for correct linkage if rasterizer uses c++ */
* See the COPYING file in the top-level directory.
*/
+#include <string.h>
#include "gpu.h"
#include "cspace.h"
#include "../../frontend/plugin_lib.h"
int fb_offs, doffs;
uint8_t *dest;
- fb_offs = y * 1024 + x;
dest = (uint8_t *)screen_buf;
+ if (dest == NULL)
+ return;
+
+ fb_offs = y * 1024 + x;
// only do centering, at least for now
doffs = (stride - w) / 2 & ~1;
blit();
}
+void vout_blank(void)
+{
+ check_mode_change();
+ if (cbs->pl_vout_raw_flip == NULL) {
+ int bytespp = gpu.status.rgb24 ? 3 : 2;
+ memset(screen_buf, 0, gpu.screen.hres * gpu.screen.h * bytespp);
+ screen_buf = cbs->pl_vout_flip();
+ }
+}
+
long GPUopen(void **unused)
{
gpu.frameskip.active = 0;
SDL_UpdateRect(screen, 0, 0, 1024, 512);
}
+void vout_blank(void)
+{
+}
+
long GPUopen(void **dpy)
{
*dpy = x11_display;