OSDN Git Service

swr: add fetch shader cache
authorGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 10 Feb 2017 16:24:32 +0000 (10:24 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 23 Feb 2017 22:36:13 +0000 (16:36 -0600)
commit669d8f626f64cee1bc74ef7869aac8585b6dcfe6
tree981ce7c2e5a1b0c00c65745c71f60ef0f1d1a35d
parent987d8037cabaafaeba2cb8b82cb7fa7290dc4464
swr: add fetch shader cache

For now, the cache key is all of FETCH_COMPILE_STATE.

Use new/delete for swr_vertex_element_state, since we have to call the
constructors/destructors of the struct elements.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.h
src/gallium/drivers/swr/swr_draw.cpp
src/gallium/drivers/swr/swr_shader.cpp
src/gallium/drivers/swr/swr_shader.h
src/gallium/drivers/swr/swr_state.cpp
src/gallium/drivers/swr/swr_state.h