OSDN Git Service

intel: Take advantage of GL_READ_ONLY_ARB to map to GEM bo_map write flag.
authorEric Anholt <eric@anholt.net>
Wed, 22 Apr 2009 23:24:42 +0000 (16:24 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 23 Apr 2009 18:13:04 +0000 (11:13 -0700)
commit4f4907d69f9020ce17aef21b6431d2dd65e01982
tree7dfe250cc35dba6801ca839310339edd42beaa88
parentf3c7d6ff866cdd96cdd55baee94f58698a9656a3
intel: Take advantage of GL_READ_ONLY_ARB to map to GEM bo_map write flag.

This is a CPU win in general, but in particular reduces the pain of
Mesa's calculation of min/max indices in DrawElements (wtf?).
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/intel/intel_buffer_objects.c