VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_misc.c@ 64572

最後變更 在這個檔案從64572是 46757,由 vboxsync 提交於 11 年 前

wddm/crOpenGL: r0-based visible regions handling, r0-based chromium commands submission debugged, more on new presentation mechanism, cleanup, etc.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 2.0 KB
 
1/*
2 * All rights reserved
3 *
4 * See the file LICENSE.txt for information on redistributing this software.
5 */
6
7#include "unpacker.h"
8
9void crUnpackExtendChromiumParametervCR( void )
10{
11 GLenum target = READ_DATA( 8, GLenum );
12 GLenum type = READ_DATA( 12, GLenum );
13 GLsizei count = READ_DATA( 16, GLsizei );
14 GLvoid *values = DATA_POINTER( 20, GLvoid );
15
16 cr_unpackDispatch.ChromiumParametervCR(target, type, count, values);
17
18
19 /*
20 INCR_VAR_PTR();
21 */
22}
23
24void crUnpackExtendDeleteQueriesARB(void)
25{
26 GLsizei n = READ_DATA( 8, GLsizei );
27 const GLuint *ids = DATA_POINTER(12, GLuint);
28 cr_unpackDispatch.DeleteQueriesARB(n, ids);
29}
30
31void crUnpackExtendGetPolygonStipple(void)
32{
33 GLubyte *mask;
34
35 SET_RETURN_PTR( 8 );
36 SET_WRITEBACK_PTR( 16 );
37 mask = DATA_POINTER(8, GLubyte);
38
39 cr_unpackDispatch.GetPolygonStipple( mask );
40}
41
42void crUnpackExtendGetPixelMapfv(void)
43{
44 GLenum map = READ_DATA( 8, GLenum );
45 GLfloat *values;
46
47 SET_RETURN_PTR( 12 );
48 SET_WRITEBACK_PTR( 20 );
49 values = DATA_POINTER(12, GLfloat);
50
51 cr_unpackDispatch.GetPixelMapfv( map, values );
52}
53
54void crUnpackExtendGetPixelMapuiv(void)
55{
56 GLenum map = READ_DATA( 8, GLenum );
57 GLuint *values;
58
59 SET_RETURN_PTR( 12 );
60 SET_WRITEBACK_PTR( 20 );
61 values = DATA_POINTER(12, GLuint);
62
63 cr_unpackDispatch.GetPixelMapuiv( map, values );
64}
65
66void crUnpackExtendGetPixelMapusv(void)
67{
68 GLenum map = READ_DATA( 8, GLenum );
69 GLushort *values;
70
71 SET_RETURN_PTR( 12 );
72 SET_WRITEBACK_PTR( 20 );
73 values = DATA_POINTER(12, GLushort);
74
75 cr_unpackDispatch.GetPixelMapusv( map, values );
76}
77
78void crUnpackExtendVBoxTexPresent(void)
79{
80 GLuint texture = READ_DATA( 8, GLuint );
81 GLuint cfg = READ_DATA( 12, GLuint );
82 GLint xPos = READ_DATA( 16, GLint );
83 GLint yPos = READ_DATA( 20, GLint );
84 GLint cRects = READ_DATA( 24, GLint );
85 GLint *pRects = (GLint *)DATA_POINTER( 28, GLvoid );
86 cr_unpackDispatch.VBoxTexPresent( texture, cfg, xPos, yPos, cRects, pRects );
87}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette