VirtualBox

Changeset 69392 in vbox for trunk


Ignore:
Timestamp:
Oct 26, 2017 5:24:52 PM (7 years ago)
Author:
vboxsync
Message:

GuestHost/OpenGL: scm updates

Location:
trunk
Files:
1 added
113 edited

Legend:

Unmodified
Added
Removed
  • trunk/.scm-settings

    r69390 r69392  
    5454--filter-out-dirs  "/src/apps/kchmviewer*/."
    5555
    56 --filter-out-dirs  "/src/VBox/GuestHost/OpenGL/*/."
    5756--filter-out-dirs  "/src/VBox/Devices/Graphics/shaderlib*/."
    5857--filter-out-dirs  "/src/VBox/Devices/Graphics/vmsvga/."
  • trunk/src/VBox/GuestHost/OpenGL/error/error.def

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/error/error.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/error/errorspu_init.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/glapi_parser/apiutil.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/opcodes.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_arrays.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_beginend.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_bounds.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_buffer.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_bufferobject.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_client.c

    • Property svn:keywords changed from Id to Id Revision
    r69046 r69392  
    673673    if (elementsBuffer && elementsBuffer->id)
    674674    {
    675         /*@todo not sure it's possible, and not sure what to do*/
     675        /** @todo not sure it's possible, and not sure what to do*/
    676676        if (!elementsBuffer->data)
    677677        {
     
    720720    if (elementsBuffer && elementsBuffer->id)
    721721    {
    722         /*@todo not sure it's possible, and not sure what to do*/
     722        /** @todo not sure it's possible, and not sure what to do*/
    723723        if (!elementsBuffer->data)
    724724        {
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_clipplane.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_context.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_current.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_currentheader.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_currenttypes.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_error.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_extensions.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_feedback.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_fence.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_fog.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_framebuffer.c

    r62492 r69392  
    2121#include "cr_string.h"
    2222
    23 void PACK_APIENTRY 
     23void PACK_APIENTRY
    2424crPackDeleteRenderbuffersEXT(GLsizei n, const GLuint * renderbuffers)
    2525{
     
    3838}
    3939
    40 void PACK_APIENTRY 
     40void PACK_APIENTRY
    4141crPackDeleteFramebuffersEXT(GLsizei n, const GLuint * framebuffers)
    4242{
     
    5555}
    5656
    57 void PACK_APIENTRY 
     57void PACK_APIENTRY
    5858crPackDeleteRenderbuffersEXTSWAP(GLsizei n, const GLuint * renderbuffers)
    5959{
     
    6363}
    6464
    65 void PACK_APIENTRY 
     65void PACK_APIENTRY
    6666crPackDeleteFramebuffersEXTSWAP(GLsizei n, const GLuint * framebuffers)
    6767{
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_header.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_init.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_lights.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_lists.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_map.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_materials.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_matrices.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_misc.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_pica.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_pixelmap.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_pixels.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_point.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_program.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_regcombiner.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_shaders.c

    • Property svn:keywords changed from Id to Id Revision
    r62814 r69392  
    5656        packet_length += pLocalLength[i];
    5757    }
    58    
     58
    5959    if (length)
    6060    {
     
    408408}
    409409
    410 /*@todo next 8 functions are bit hacky,
     410/** @todo next 8 functions are bit hacky,
    411411 * we expect packspu to pass a single structure with all output parameters via first output pointer.
    412412 * it'd be better to add CRMessageMultiReadback one day.
     
    474474void PACK_APIENTRY crPackGetAttachedObjectsARB(VBoxGLhandleARB containerObj, GLsizei maxCount, GLsizei * count, VBoxGLhandleARB * obj, int * writeback)
    475475{
    476         CR_GET_PACKER_CONTEXT(pc);
    477         unsigned char *data_ptr;
    478         (void) pc; (void) obj;
    479         CR_GET_BUFFERED_POINTER(pc, 32);
    480         WRITE_DATA(0, GLint, 32);
    481         WRITE_DATA(4, GLenum, CR_GETATTACHEDOBJECTSARB_EXTEND_OPCODE);
    482         WRITE_DATA(8, VBoxGLhandleARB, containerObj);
    483         WRITE_DATA(12, GLsizei, maxCount);
    484         WRITE_NETWORK_POINTER(16, (void *) count);
    485         WRITE_NETWORK_POINTER(24, (void *) writeback);
    486         WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
    487         CR_CMDBLOCK_CHECK_FLUSH(pc);
     476        CR_GET_PACKER_CONTEXT(pc);
     477        unsigned char *data_ptr;
     478        (void) pc; (void) obj;
     479        CR_GET_BUFFERED_POINTER(pc, 32);
     480        WRITE_DATA(0, GLint, 32);
     481        WRITE_DATA(4, GLenum, CR_GETATTACHEDOBJECTSARB_EXTEND_OPCODE);
     482        WRITE_DATA(8, VBoxGLhandleARB, containerObj);
     483        WRITE_DATA(12, GLsizei, maxCount);
     484        WRITE_NETWORK_POINTER(16, (void *) count);
     485        WRITE_NETWORK_POINTER(24, (void *) writeback);
     486        WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
     487        CR_CMDBLOCK_CHECK_FLUSH(pc);
    488488    CR_UNLOCK_PACKER_CONTEXT(pc);
    489489}
     
    491491void PACK_APIENTRY crPackGetInfoLogARB(VBoxGLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog, int * writeback)
    492492{
    493         CR_GET_PACKER_CONTEXT(pc);
    494         unsigned char *data_ptr;
    495         (void) pc; (void) infoLog;
    496         CR_GET_BUFFERED_POINTER(pc, 32);
    497         WRITE_DATA(0, GLint, 32);
    498         WRITE_DATA(4, GLenum, CR_GETINFOLOGARB_EXTEND_OPCODE);
    499         WRITE_DATA(8, VBoxGLhandleARB, obj);
    500         WRITE_DATA(12, GLsizei, maxLength);
    501         WRITE_NETWORK_POINTER(16, (void *) length);
    502         WRITE_NETWORK_POINTER(24, (void *) writeback);
    503         WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
    504         CR_CMDBLOCK_CHECK_FLUSH(pc);
     493        CR_GET_PACKER_CONTEXT(pc);
     494        unsigned char *data_ptr;
     495        (void) pc; (void) infoLog;
     496        CR_GET_BUFFERED_POINTER(pc, 32);
     497        WRITE_DATA(0, GLint, 32);
     498        WRITE_DATA(4, GLenum, CR_GETINFOLOGARB_EXTEND_OPCODE);
     499        WRITE_DATA(8, VBoxGLhandleARB, obj);
     500        WRITE_DATA(12, GLsizei, maxLength);
     501        WRITE_NETWORK_POINTER(16, (void *) length);
     502        WRITE_NETWORK_POINTER(24, (void *) writeback);
     503        WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
     504        CR_CMDBLOCK_CHECK_FLUSH(pc);
    505505    CR_UNLOCK_PACKER_CONTEXT(pc);
    506506}
     
    562562void PACK_APIENTRY crPackGetUniformsLocations(GLuint program, GLsizei maxcbData, GLsizei * cbData, GLvoid * pData, int * writeback)
    563563{
    564         CR_GET_PACKER_CONTEXT(pc);
     564        CR_GET_PACKER_CONTEXT(pc);
    565565    unsigned char *data_ptr;
    566566    (void) pData;
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_stipple.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_swap.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_swap_lists.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_swap_map.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_swap_pixelmap.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_swap_texture.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_texture.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_visibleregion.c

    • Property svn:executable deleted
    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/packer.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/packer_bbox.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/packer/packer_defs.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/choosevisual.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/dispatch.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/dispatchheader.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/glloader.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/loader.def

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/spuchange.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/spucopy.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/spuinit.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/spuload.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/convert.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/gendiffcode.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/get_components.py

    • Property svn:keywords changed from Id to Id Revision
    r63939 r69392  
    140140""")
    141141
    142 
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_attrib.c

    • Property svn:keywords changed from Id to Id Revision
    r44326 r69392  
    5656}
    5757
    58 /*@todo check if NV rect needed too*/
     58/** @todo check if NV rect needed too*/
    5959static void
    6060copy_texunit(CRTextureUnit *dest, const CRTextureUnit *src)
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_buffer.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_bufferobject.c

    • Property svn:keywords changed from Id to Id Revision
    r63199 r69392  
    997997    if (pBufferObj->data)
    998998    {
    999         /*@todo http://www.opengl.org/registry/specs/ARB/pixel_buffer_object.txt
     999        /** @todo http://www.opengl.org/registry/specs/ARB/pixel_buffer_object.txt
    10001000          "While it is entirely legal to create a buffer object by binding
    10011001          it to GL_ARRAY_BUFFER and loading it with data, then using it
     
    11251125}
    11261126
    1127 
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_client.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_current.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_current.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_defs.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_diff.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_enable.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_error.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_evaluators.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_feedback.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_fence.c

    • Property svn:keywords changed from Id to Id Revision
    r63199 r69392  
    4949}
    5050
    51 
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_flush.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_fog.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_framebuffer.c

    r63199 r69392  
    175175    int u;
    176176
    177     if (!pFBO) 
     177    if (!pFBO)
    178178        return;
    179179
     
    394394    }
    395395
    396     /* @todo: http://www.opengl.org/registry/specs/ARB/framebuffer_object.txt
     396    /** @todo http://www.opengl.org/registry/specs/ARB/framebuffer_object.txt
    397397     * FBO status might change when binding a different FBO here...but I doubt it happens.
    398398     * So no status reset here until a proper check.
     
    479479}
    480480
    481 /*@todo: move this function somewhere else*/
     481/** @todo move this function somewhere else*/
    482482/*return floor of base 2 log of x. log(0)==0*/
    483483static unsigned int crLog2Floor(unsigned int x)
     
    874874{
    875875    (void)target;
    876     /*@todo*/
     876    /** @todo */
    877877}
    878878
     
    900900        case GL_TEXTURE:
    901901            CRASSERT(pAP->name!=0);
    902            
     902
    903903            tobj = (CRTextureObj *) crHashtableSearch(ctx->shared->textureTable, pAP->name);
    904904            if (tobj)
     
    987987        diff_api.BindRenderbufferEXT(GL_RENDERBUFFER_EXT, to->framebufferobject.renderbuffer?
    988988            to->framebufferobject.renderbuffer->hwid:0);
    989     } 
    990     else 
     989    }
     990    else
    991991    {
    992992        if (to->framebufferobject.drawFB!=from->framebufferobject.drawFB
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_funcs.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_get.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_getstring.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_glsl.c

    r63199 r69392  
    139139
    140140    pRealShader = crStateGetShaderObj(pShader->id);
    141    
     141
    142142    if (pRealShader)
    143143    {
     
    188188    CRContext *g = GetCurrentContext();
    189189
    190     /*@todo: hack to allow crStateFreeGLSLProgram to work correctly,
     190    /** @todo hack to allow crStateFreeGLSLProgram to work correctly,
    191191      as the current context isn't the one being destroyed*/
    192192#ifdef CHROMIUM_THREADSAFE
     
    671671    pAttribs[pProgram->currentState.cAttribs].index = index;
    672672    pAttribs[pProgram->currentState.cAttribs].name = crStrdup(name);
    673    
     673
    674674    pProgram->currentState.cAttribs++;
    675675    if (pProgram->currentState.pAttribs) crFree(pProgram->currentState.pAttribs);
     
    827827}
    828828
    829 /*@todo: one of those functions should ignore uniforms starting with "gl"*/
     829/** @todo one of those functions should ignore uniforms starting with "gl"*/
    830830
    831831#ifdef IN_GUEST
    832 DECLEXPORT(void) STATE_APIENTRY 
     832DECLEXPORT(void) STATE_APIENTRY
    833833crStateGLSLProgramCacheUniforms(GLuint program, GLsizei cbData, GLvoid *pData)
    834834{
     
    981981}
    982982#else /* IN_GUEST */
    983 static GLboolean crStateGLSLProgramCacheOneUniform(GLuint location, GLsizei cbName, GLchar *pName, 
     983static GLboolean crStateGLSLProgramCacheOneUniform(GLuint location, GLsizei cbName, GLchar *pName,
    984984                                                   char **pCurrent, GLsizei *pcbWritten, GLsizei maxcbData)
    985985{
     
    10041004}
    10051005
    1006 DECLEXPORT(void) STATE_APIENTRY 
     1006DECLEXPORT(void) STATE_APIENTRY
    10071007crStateGLSLProgramCacheUniforms(GLuint program, GLsizei maxcbData, GLsizei *cbData, GLvoid *pData)
    10081008{
     
    10211021     * OpenGL spec says about GL_ACTIVE_UNIFORM_MAX_LENGTH:
    10221022     * "If no active uniform variable exist, 0 is returned."
    1023      */ 
     1023     */
    10241024    diff_api.GetProgramiv(pProgram->hwid, GL_ACTIVE_UNIFORM_MAX_LENGTH, &maxUniformLen);
    10251025    if (maxUniformLen > 0)
     
    10771077                 *The name returned by glGetActiveUniform is driver dependent,
    10781078                 *atleast it's with [0] on win/ati and without [0] on linux/nvidia.
    1079                  */               
     1079                 */
    10801080                if (!pIndexStr)
    10811081                {
     
    13641364    CRGLSLProgram *pProgram = (CRGLSLProgram *) data2;
    13651365    (void) key;
    1366    
     1366
    13671367    if (pShader->source)
    13681368    {
     
    13801380    CRGLSLProgram *pProgram = (CRGLSLProgram *) data2;
    13811381    (void) key;
    1382    
     1382
    13831383    diff_api.DetachShader(pProgram->hwid, pShader->hwid);
    13841384}
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_hint.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_init.c

    • Property svn:keywords changed from Id to Id Revision
    r63199 r69392  
    436436}
    437437
    438 /*@todo crStateAttribDestroy*/
     438/** @todo crStateAttribDestroy*/
    439439static void
    440440crStateFreeContext(CRContext *ctx)
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_isenabled.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lighting.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_limits.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_line.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lists.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_multisample.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_occlude.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_pixel.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_point.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_polygon.c

    • Property svn:keywords changed from Id to Id Revision
    r69046 r69392  
    186186    }
    187187
    188     /*@todo track mask if buffer is bound?*/
     188    /** @todo track mask if buffer is bound?*/
    189189    if (!crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
    190190    {
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_program.c

    • Property svn:keywords changed from Id to Id Revision
    r63459 r69392  
    23062306}
    23072307
    2308 /*@todo support NVprograms and add some data validity checks*/
     2308/** @todo support NVprograms and add some data validity checks*/
    23092309static void
    23102310DiffProgramCallback(unsigned long key, void *pProg, void *pCtx)
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_rasterpos.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_regcombiner.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c

    • Property svn:keywords changed from Id to Id Revision
    r66835 r69392  
    3838 * we'd have to update this code if we'd change state tracking.
    3939 * On the bright side it's fast, though it's not really needed as it's not that often operation.
    40  * It could also worth to split those functions into appropriate parts, 
     40 * It could also worth to split those functions into appropriate parts,
    4141 * similar to the way context creation is being done.
    4242 *
    4343 * Second way would be to implement full dispatch api table and substitute diff_api during saving/loading.
    44  * Then if we implement that api in a similar way to packer/unpacker with a change to store/load 
     44 * Then if we implement that api in a similar way to packer/unpacker with a change to store/load
    4545 * via provided pSSM handle instead of pack buffer,
    4646 * saving state could be done by simple diffing against empty "dummy" context.
     
    400400    int32_t rc, face, i;
    401401    GLint bound = 0;
    402    
     402
    403403    CRASSERT(pTexture && pSSM);
    404404
     
    419419            }
    420420#ifdef CR_STATE_NO_TEXTURE_IMAGE_STORE
    421             /* Note, this is not a bug. 
     421            /* Note, this is not a bug.
    422422             * Even with CR_STATE_NO_TEXTURE_IMAGE_STORE defined, it's possible that ptl->img!=NULL.
    423423             * For ex. we're saving snapshot right after it was loaded
     
    515515#endif
    516516
    517                     /*@todo: ugly workaround for crashes inside ati driver,
     517                    /** @todo ugly workaround for crashes inside ati driver,
    518518                     *       they overwrite their own allocated memory in cases where texlevel >=4
    519519                             and width or height <=2.
     
    559559{
    560560    int32_t rc, face, i;
    561    
     561
    562562    CRASSERT(pTexture && pSSM);
    563563
     
    623623{
    624624    int32_t rc;
    625    
     625
    626626    CRASSERT(pStack && pSSM);
    627627
     
    12211221
    12221222                crStateSaveString(name, pSSM);
    1223            
     1223
    12241224                if (crStateIsIntUniform(type))
    12251225                {
     
    15971597
    15981598    /* Save attrib stack*/
    1599     /*@todo could go up to used stack depth here?*/
     1599    /** @todo could go up to used stack depth here?*/
    16001600    for ( i = 0 ; i < CR_MAX_ATTRIB_STACK_DEPTH ; i++)
    16011601    {
     
    21122112#endif /*CR_ARB_vertex_buffer_object*/
    21132113
    2114     /*@todo CR_NV_vertex_program*/
     2114    /** @todo CR_NV_vertex_program*/
    21152115    crStateCopyEvalPtrs1D(pTmpContext->eval.eval1D, pContext->eval.eval1D);
    21162116    crStateCopyEvalPtrs2D(pTmpContext->eval.eval2D, pContext->eval.eval2D);
    2117    
    2118     SLC_COPYPTR(feedback.buffer);  /*@todo*/
    2119     SLC_COPYPTR(selection.buffer); /*@todo*/
     2117
     2118    SLC_COPYPTR(feedback.buffer);  /** @todo */
     2119    SLC_COPYPTR(selection.buffer); /** @todo */
    21202120
    21212121    SLC_COPYPTR(lighting.light);
     
    21252125
    21262126#if CR_ARB_occlusion_query
    2127     SLC_COPYPTR(occlusion.objects); /*@todo*/
     2127    SLC_COPYPTR(occlusion.objects); /** @todo */
    21282128#endif
    21292129
     
    23872387            rc = SSMR3GetMem(pSSM, pBufferObj->data, pBufferObj->size);
    23882388            AssertRCReturn(rc, rc);
    2389         } 
     2389        }
    23902390        else if (pBufferObj->id!=0 && pBufferObj->size>0)
    23912391        {
     
    24032403
    24042404        if (key!=0)
    2405             crHashtableAdd(pContext->shared->buffersTable, key, pBufferObj);       
     2405            crHashtableAdd(pContext->shared->buffersTable, key, pBufferObj);
    24062406    }
    24072407    /* Load pointers */
     
    24582458        crHashtableAdd(pContext->program.programHash, pProgram->id, pProgram);
    24592459        //DIRTY(pProgram->dirtyProgram, pContext->neg_bitid);
    2460        
     2460
    24612461    }
    24622462    /* Load Pointers */
     
    25282528    rc = SSMR3GetU32(pSSM, &ui);
    25292529    AssertRCReturn(rc, rc);
    2530     pContext->framebufferobject.drawFB = ui==0 ? NULL 
     2530    pContext->framebufferobject.drawFB = ui==0 ? NULL
    25312531                                               : crHashtableSearch(pContext->shared->fbTable, ui);
    25322532
    25332533    rc = SSMR3GetU32(pSSM, &ui);
    25342534    AssertRCReturn(rc, rc);
    2535     pContext->framebufferobject.readFB = ui==0 ? NULL 
     2535    pContext->framebufferobject.readFB = ui==0 ? NULL
    25362536                                               : crHashtableSearch(pContext->shared->fbTable, ui);
    25372537
    25382538    rc = SSMR3GetU32(pSSM, &ui);
    25392539    AssertRCReturn(rc, rc);
    2540     pContext->framebufferobject.renderbuffer = ui==0 ? NULL 
     2540    pContext->framebufferobject.renderbuffer = ui==0 ? NULL
    25412541                                                     : crHashtableSearch(pContext->shared->rbTable, ui);
    25422542
     
    25912591        }
    25922592
    2593         if (pProgram->activeState.attachedShaders) 
     2593        if (pProgram->activeState.attachedShaders)
    25942594        {
    25952595            pProgram->activeState.attachedShaders = crAllocHashtable();
     
    26062606        }
    26072607
    2608         if (pProgram->currentState.cAttribs) 
     2608        if (pProgram->currentState.cAttribs)
    26092609            pProgram->currentState.pAttribs = (CRGLSLAttrib*) crAlloc(pProgram->currentState.cAttribs*sizeof(CRGLSLAttrib));
    26102610        for (k=0; k<pProgram->currentState.cAttribs; ++k)
     
    26152615        }
    26162616
    2617         if (pProgram->activeState.cAttribs) 
     2617        if (pProgram->activeState.cAttribs)
    26182618            pProgram->activeState.pAttribs = (CRGLSLAttrib*) crAlloc(pProgram->activeState.cAttribs*sizeof(CRGLSLAttrib));
    26192619        for (k=0; k<pProgram->activeState.cAttribs; ++k)
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_stencil.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texdiff.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_teximage.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texture.c

    • Property svn:keywords changed from Id to Id Revision
    r63199 r69392  
    33213321         * the crserverlib code be able to pass it to host ogl */
    33223322
    3323         /* TODO: store texture priorities in the state data to be able to restore it properly
     3323        /** @todo store texture priorities in the state data to be able to restore it properly
    33243324         * on save state load */
    33253325    }
     
    33363336    UNUSED(textures);
    33373337    UNUSED(residences);
    3338     /* TODO: */
     3338    /** @todo */
    33393339    return GL_TRUE;
    33403340}
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_transform.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_viewport.c

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/util/blitter.cpp

    r63369 r69392  
    1717
    1818
    19 /*******************************************************************************
    20 *   Header Files                                                               *
    21 *******************************************************************************/
     19/*********************************************************************************************************************************
     20*   Header Files                                                                                                                 *
     21*********************************************************************************************************************************/
    2222#ifdef IN_VMSVGA3D
    2323# include <OpenGL/OpenGL.h>
     
    833833        crWarning("GL_ARB_pixel_buffer_object not supported");
    834834
    835     /* BlitFramebuffer seems to be buggy on Intel, 
     835    /* BlitFramebuffer seems to be buggy on Intel,
    836836     * try always glDrawXxx for now */
    837837    if (!pBlitter->Flags.ForceDrawBlit && crStrstr(pszExtension, "GL_EXT_framebuffer_blit"))
     
    10011001    pBlitter->pDispatch->BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, pBlitter->idFBO);
    10021002
    1003     /* TODO: mag/min filters ? */
     1003    /** @todo mag/min filters ? */
    10041004
    10051005    pBlitter->pDispatch->FramebufferTexture2DEXT(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, pDst->target, pDst->hwid, 0);
     
    11611161    crWarning("GLSL unsuported, gl version %d", pCache->iGlVersion);
    11621162
    1163     /* @todo: we could also check for GL_ARB_shader_objects and GL_ARB_fragment_shader,
     1163    /** @todo we could also check for GL_ARB_shader_objects and GL_ARB_fragment_shader,
    11641164     * but seems like chromium does not support properly gl*Object versions of shader functions used with those extensions */
    11651165    return false;
  • trunk/src/VBox/GuestHost/OpenGL/util/compositor.cpp

    r63199 r69392  
    1616 */
    1717
    18 /*******************************************************************************
    19 *   Header Files                                                               *
    20 *******************************************************************************/
     18
     19/*********************************************************************************************************************************
     20*   Header Files                                                                                                                 *
     21*********************************************************************************************************************************/
    2122#include "../include/cr_compositor.h"
    2223
    2324
    24 /*******************************************************************************
    25 *   Defined Constants And Macros                                               *
    26 *******************************************************************************/
     25/*********************************************************************************************************************************
     26*   Defined Constants And Macros                                                                                                 *
     27*********************************************************************************************************************************/
    2728#define VBOXVR_SCR_COMPOSITOR_RECTS_UNDEFINED UINT32_MAX
    2829#ifdef IN_VMSVGA3D
     
    514515                                                   bool fPosRelated, bool *pfChanged)
    515516{
    516     /* @todo: the fChanged sate calculation is really rough now, this is enough for now though */
     517    /** @todo the fChanged sate calculation is really rough now, this is enough for now though */
    517518    bool fChanged = false, fPosChanged = false;
    518519    bool fWasInList = CrVrScrCompositorEntryIsInList(pEntry);
  • trunk/src/VBox/GuestHost/OpenGL/util/debug_opcodes.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/util/lowercase.py

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/util/net.c

    r63199 r69392  
    441441    {
    442442#ifdef WINDOWS
    443         /* @todo: do we actually need that WSA stuff with VBox at all? */
     443        /** @todo do we actually need that WSA stuff with VBox at all? */
    444444        WORD wVersionRequested = MAKEWORD(2, 0);
    445445        WSADATA wsaData;
  • trunk/src/VBox/GuestHost/OpenGL/util/pixel.c

    r66827 r69392  
    16931693    (void)dstPacking;
    16941694
    1695     /*@todo this should be implemented properly*/
     1695    /** @todo this should be implemented properly*/
    16961696
    16971697#ifndef DEBUG_misha
  • trunk/src/VBox/GuestHost/OpenGL/util/util.def

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c

    r68550 r69392  
    4646#endif
    4747
    48 /*@todo move define somewhere else, and make sure it's less than VBGLR0_MAX_HGCM_KERNEL_PARM*/
     48/** @todo move define somewhere else, and make sure it's less than VBGLR0_MAX_HGCM_KERNEL_PARM*/
    4949/*If we fail to pass data in one chunk, send it in chunks of this size instead*/
    5050#define CR_HGCM_SPLIT_BUFFER_SIZE (8*_1M)
     
    545545
    546546#ifndef IN_GUEST
    547 /*@todo get rid of it*/
     547/** @todo get rid of it*/
    548548static bool _crVBoxHGCMWriteBytes(CRConnection *conn, const void *buf, uint32_t len)
    549549{
     
    593593    else
    594594# endif
    595     {       
     595    {
    596596        rc = VbglR3HGCMCall(pData, cbData);
    597597        if (RT_SUCCESS(rc))
     
    916916    {
    917917#ifndef IN_GUEST
    918             /**@todo remove temp buffer allocation in unpacker*/
     918            /** @todo remove temp buffer allocation in unpacker*/
    919919            /* we're at the host side, so just store data until guest polls us */
    920920            _crVBoxHGCMWriteBytes(conn, start, len);
     
    10231023    CRASSERT(hgcm_buffer->magic == CR_VBOXHGCM_BUFFER_MAGIC);
    10241024
    1025     /*@todo wrong len for redir buffers*/
     1025    /** @todo wrong len for redir buffers*/
    10261026    conn->recv_credits += hgcm_buffer->len;
    10271027
     
    10331033#endif
    10341034            if (g_crvboxhgcm.bufpool) {
    1035                 /**@todo o'rly? */
     1035                /** @todo o'rly? */
    10361036                /* pool may have been deallocated just a bit earlier in response
    10371037                 * to a SIGPIPE (Broken Pipe) signal.
     
    13761376}
    13771377
    1378 /*@todo same, replace DeviceIoControl with vbglR3DoIOCtl */
     1378/** @todo same, replace DeviceIoControl with vbglR3DoIOCtl */
    13791379static void crVBoxHGCMDoDisconnect( CRConnection *conn )
    13801380{
     
    21892189
    21902190    /* Can't open VBox guest driver here, because it gets called for host side as well */
    2191     /*@todo as we have 2 dll versions, can do it now.*/
     2191    /** @todo as we have 2 dll versions, can do it now.*/
    21922192
    21932193#ifdef RT_OS_WINDOWS
  • trunk/src/VBox/GuestHost/OpenGL/util/vboxhgsmi.c

    r68550 r69392  
    618618        {
    619619            _crVBoxHGSMIWaitCmd(pClient);
    620                 /* @todo: do we need to wait for completion actually?
     620                /** @todo do we need to wait for completion actually?
    621621                 * NOTE: in case we do not need completion,
    622622                 * we MUST specify bDoNotSignalCompletion flag for the command buffer */
     
    652652        {
    653653            _crVBoxHGSMIWaitCmd(pClient);
    654                 /* @todo: do we need to wait for completion actually?
     654                /** @todo do we need to wait for completion actually?
    655655                 * NOTE: in case we do not need completion,
    656656                 * we MUST specify bDoNotSignalCompletion flag for the command buffer */
     
    924924        pClient = _crVBoxHGSMIClientGet();
    925925#ifndef IN_GUEST
    926             //@todo remove temp buffer allocation in unpacker
     926            /// @todo remove temp buffer allocation in unpacker
    927927            /* we're at the host side, so just store data until guest polls us */
    928928            _crVBoxHGCMWriteBytes(conn, start, len);
     
    10101010    else
    10111011    {
    1012         /*@todo wrong len for redir buffers*/
     1012        /** @todo wrong len for redir buffers*/
    10131013        conn->recv_credits += hgsmi_buffer->u32Len;
    10141014
     
    12451245}
    12461246
    1247 /*@todo same, replace DeviceIoControl with vbglR3DoIOCtl */
     1247/** @todo same, replace DeviceIoControl with vbglR3DoIOCtl */
    12481248static void crVBoxHGSMIDoDisconnect( CRConnection *conn )
    12491249{
     
    12611261    conn->cbBuffer = 0;
    12621262
    1263     //@todo hold lock here?
     1263    /// @todo hold lock here?
    12641264    if (conn->type == CR_VBOXHGCM)
    12651265    {
     
    13481348    Assert(0);
    13491349
    1350     /* @todo */
     1350    /** @todo */
    13511351}
    13521352
     
    13951395
    13961396    /* Can't open VBox guest driver here, because it gets called for host side as well */
    1397     /*@todo as we have 2 dll versions, can do it now.*/
     1397    /** @todo as we have 2 dll versions, can do it now.*/
    13981398
    13991399#ifdef RT_OS_WINDOWS
     
    14831483    conn->allow_redir_ptr = 1;
    14841484
    1485     //@todo remove this crap at all later
     1485    /// @todo remove this crap at all later
    14861486    conn->cbHostBufferAllocated = 0;//2*1024;
    14871487    conn->pHostBuffer = NULL;//(uint8_t*) crAlloc(conn->cbHostBufferAllocated);
  • trunk/src/VBox/GuestHost/OpenGL/util/vreg.cpp

    r64766 r69392  
    1616 */
    1717
    18 /*******************************************************************************
    19 *   Header Files                                                               *
    20 *******************************************************************************/
     18
     19/*********************************************************************************************************************************
     20*   Header Files                                                                                                                 *
     21*********************************************************************************************************************************/
    2122#ifdef IN_VMSVGA3D
    2223# include "../include/cr_vreg.h"
     
    99100
    100101
    101 /*******************************************************************************
    102 *   Defined Constants And Macros                                               *
    103 *******************************************************************************/
     102/*********************************************************************************************************************************
     103*   Defined Constants And Macros                                                                                                 *
     104*********************************************************************************************************************************/
    104105#define VBOXVR_INVALID_COORD    (~0U)
    105106
    106107
    107 /*******************************************************************************
    108 *   Global Variables                                                           *
    109 *******************************************************************************/
     108/*********************************************************************************************************************************
     109*   Global Variables                                                                                                             *
     110*********************************************************************************************************************************/
    110111static volatile int32_t g_cVBoxVrInits = 0;
    111112
     
    812813                    Assert(VBoxRectCmp(pRect2, &RegRect1));
    813814
    814                     /* @todo: this can have false-alarming sometimes if the separated rects will then be joind into the original rect,
     815                    /** @todo this can have false-alarming sometimes if the separated rects will then be joind into the original rect,
    815816                     * so far this should not be a problem for VReg clients, so keep it this way for now  */
    816817                    fChanged = true;
     
    961962        return VINF_SUCCESS;
    962963
    963     /* @todo: fChanged will have false alarming here, fix if needed */
     964    /** @todo fChanged will have false alarming here, fix if needed */
    964965    VBoxVrListClear(pList);
    965966
Note: See TracChangeset for help on using the changeset viewer.

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