Subversion Repositories Kolibri OS

Rev

Rev 3254 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3254 Rev 3263
Line 469... Line 469...
469
				      bool (*compile)(struct brw_compile *, int),
469
				      bool (*compile)(struct brw_compile *, int),
470
				      int width);
470
				      int width);
471
struct kgem_bo *sna_static_stream_fini(struct sna *sna,
471
struct kgem_bo *sna_static_stream_fini(struct sna *sna,
472
				       struct sna_static_stream *stream);
472
				       struct sna_static_stream *stream);
Line 473... Line -...
473
 
-
 
474
/*
473
 
475
struct kgem_bo *
474
struct kgem_bo *
476
sna_render_get_solid(struct sna *sna,
475
sna_render_get_solid(struct sna *sna,
Line 477... Line 476...
477
		     uint32_t color);
476
		     uint32_t color);
478
 
477
 
Line 479... Line -...
479
void
-
 
480
sna_render_flush_solid(struct sna *sna);
-
 
481
 
-
 
Line 482... Line 478...
482
struct kgem_bo *
478
void
483
sna_render_get_gradient(struct sna *sna,
479
sna_render_flush_solid(struct sna *sna);
484
			PictGradient *pattern);
480
 
485
 
481
 
Line 491... Line 487...
491
			     uint16_t *blue,
487
			     uint16_t *blue,
492
			     uint16_t *alpha,
488
			     uint16_t *alpha,
493
			     uint32_t format);
489
			     uint32_t format);
494
bool sna_picture_is_solid(PicturePtr picture, uint32_t *color);
490
bool sna_picture_is_solid(PicturePtr picture, uint32_t *color);
Line 495... Line -...
495
 
-
 
496
*/
-
 
497
 
491
 
Line 498... Line 492...
498
void no_render_init(struct sna *sna);
492
void no_render_init(struct sna *sna);
499
 
493
 
500
bool gen2_render_init(struct sna *sna);
494
bool gen2_render_init(struct sna *sna);
Line 681... Line 675...
681
 
675
 
682
bool
676
bool
Line 683... Line 677...
683
sna_composite_mask_is_opaque(PicturePtr mask);
677
sna_composite_mask_is_opaque(PicturePtr mask);
684
 
-
 
685
#endif
678
 
Line -... Line 679...
-
 
679
#endif
-
 
680
void sna_vertex_init(struct sna *sna);
-
 
681
 
-
 
682
static inline void sna_vertex_lock(struct sna_render *r)
-
 
683
{
-
 
684
//	pthread_mutex_lock(&r->lock);
-
 
685
}
-
 
686
 
-
 
687
static inline void sna_vertex_acquire__locked(struct sna_render *r)
-
 
688
{
-
 
689
	r->active++;
-
 
690
}
-
 
691
 
-
 
692
static inline void sna_vertex_unlock(struct sna_render *r)
-
 
693
{
-
 
694
//	pthread_mutex_unlock(&r->lock);
-
 
695
}
-
 
696
 
-
 
697
static inline void sna_vertex_release__locked(struct sna_render *r)
-
 
698
{
-
 
699
	assert(r->active > 0);
-
 
700
	--r->active;
-
 
701
//	if (--r->active == 0)
-
 
702
//		pthread_cond_signal(&r->wait);
-
 
703
}
-
 
704
 
-
 
705
static inline bool sna_vertex_wait__locked(struct sna_render *r)
-
 
706
{
-
 
707
	bool was_active = r->active;
-
 
708
//	while (r->active)
Line 686... Line 709...
686
 
709
//		pthread_cond_wait(&r->wait, &r->lock);