OSDN Git Service

llvmpipe: Cope with null Vertex element cso.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 10 Mar 2010 07:23:29 +0000 (07:23 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 10 Mar 2010 07:23:29 +0000 (07:23 +0000)
commiteeaa0861bfc98a06ceec269801271b7453c4fcbd
treeae685b4727b7f73d004a2b014745cd09720019ae
parented7f73e161b93b4a83bb6ad6b6aa6cfcb65dc4b0
llvmpipe: Cope with null Vertex element cso.

CSO can often be null.

For example:
1. at initialization
2. using an util module (u_blit) right after initialization (it will push
   state and pop the previous null state)
3. at shutdown time (state shouldn't be bound when being destroyed)

Glean was hitting 2.
src/gallium/drivers/llvmpipe/lp_state_vertex.c