dlm_checklist.c revision 072f0b86f23a38efb7454da3144cbce76805be76
a72f7ea693101cc48bafbb4db6bb437d828011c4ql/* $Id$ */
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer#include "cr_dlm.h"
a72f7ea693101cc48bafbb4db6bb437d828011c4ql#include "cr_mem.h"
a72f7ea693101cc48bafbb4db6bb437d828011c4ql#include "cr_pixeldata.h"
a72f7ea693101cc48bafbb4db6bb437d828011c4ql#include "cr_string.h"
a72f7ea693101cc48bafbb4db6bb437d828011c4ql#include "dlm.h"
a72f7ea693101cc48bafbb4db6bb437d828011c4ql
a72f7ea693101cc48bafbb4db6bb437d828011c4ql/*****************************************************************************
a72f7ea693101cc48bafbb4db6bb437d828011c4ql * These helper functions are used for GL functions that are listed in
a72f7ea693101cc48bafbb4db6bb437d828011c4ql * the APIspec.txt file as "checklist", meaning that sometimes they
a72f7ea693101cc48bafbb4db6bb437d828011c4ql * represent functions that can be stored in a display list, and sometimes
a72f7ea693101cc48bafbb4db6bb437d828011c4ql * they represent control functions that must be executed immediately.
a72f7ea693101cc48bafbb4db6bb437d828011c4ql *
a72f7ea693101cc48bafbb4db6bb437d828011c4ql * The calling SPU must use these check functions (or their equivalents)
a72f7ea693101cc48bafbb4db6bb437d828011c4ql * before asking the DLM to compile any elements of these types.
a72f7ea693101cc48bafbb4db6bb437d828011c4ql * They return nonzero (TRUE) if the element goes into a display list.
a72f7ea693101cc48bafbb4db6bb437d828011c4ql */
a72f7ea693101cc48bafbb4db6bb437d828011c4ql
a72f7ea693101cc48bafbb4db6bb437d828011c4qlint DLM_APIENTRY crDLMCheckListTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
a72f7ea693101cc48bafbb4db6bb437d828011c4ql{
a72f7ea693101cc48bafbb4db6bb437d828011c4ql return (target != GL_PROXY_TEXTURE_1D);
a72f7ea693101cc48bafbb4db6bb437d828011c4ql}
a72f7ea693101cc48bafbb4db6bb437d828011c4ql
a72f7ea693101cc48bafbb4db6bb437d828011c4qlint DLM_APIENTRY crDLMCheckListCompressedTexImage1DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imagesize, const GLvoid *data)
a72f7ea693101cc48bafbb4db6bb437d828011c4ql{
a72f7ea693101cc48bafbb4db6bb437d828011c4ql return (target != GL_PROXY_TEXTURE_1D);
a72f7ea693101cc48bafbb4db6bb437d828011c4ql}
a72f7ea693101cc48bafbb4db6bb437d828011c4qlint DLM_APIENTRY crDLMCheckListTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
a72f7ea693101cc48bafbb4db6bb437d828011c4ql{
a72f7ea693101cc48bafbb4db6bb437d828011c4ql return (target != GL_PROXY_TEXTURE_2D);
a72f7ea693101cc48bafbb4db6bb437d828011c4ql}
a72f7ea693101cc48bafbb4db6bb437d828011c4ql
a72f7ea693101cc48bafbb4db6bb437d828011c4qlint DLM_APIENTRY crDLMCheckListCompressedTexImage2DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imagesize, const GLvoid *data)
a72f7ea693101cc48bafbb4db6bb437d828011c4ql{
a72f7ea693101cc48bafbb4db6bb437d828011c4ql return (target != GL_PROXY_TEXTURE_2D);
9aa73b6813b3fd35e78fcc44fd17535e765e504cQin Michael Li}
a72f7ea693101cc48bafbb4db6bb437d828011c4ql
9aa73b6813b3fd35e78fcc44fd17535e765e504cQin Michael Liint DLM_APIENTRY crDLMCheckListTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
a72f7ea693101cc48bafbb4db6bb437d828011c4ql{
9aa73b6813b3fd35e78fcc44fd17535e765e504cQin Michael Li return (target != GL_PROXY_TEXTURE_3D);
9aa73b6813b3fd35e78fcc44fd17535e765e504cQin Michael Li}
a72f7ea693101cc48bafbb4db6bb437d828011c4ql
9aa73b6813b3fd35e78fcc44fd17535e765e504cQin Michael Liint DLM_APIENTRY crDLMCheckListTexImage3DEXT(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer{
a72f7ea693101cc48bafbb4db6bb437d828011c4ql return (target != GL_PROXY_TEXTURE_3D);
a72f7ea693101cc48bafbb4db6bb437d828011c4ql}
a72f7ea693101cc48bafbb4db6bb437d828011c4ql
a72f7ea693101cc48bafbb4db6bb437d828011c4qlint DLM_APIENTRY crDLMCheckListCompressedTexImage3DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imagesize, const GLvoid *data)
a72f7ea693101cc48bafbb4db6bb437d828011c4ql{
a72f7ea693101cc48bafbb4db6bb437d828011c4ql return (target != GL_PROXY_TEXTURE_3D);
a72f7ea693101cc48bafbb4db6bb437d828011c4ql}
a72f7ea693101cc48bafbb4db6bb437d828011c4ql