1ba55f2f5SFrançois Tigeot /* 2ba55f2f5SFrançois Tigeot * Copyright © 2014 Intel Corporation 3ba55f2f5SFrançois Tigeot * 4ba55f2f5SFrançois Tigeot * Permission is hereby granted, free of charge, to any person obtaining a 5ba55f2f5SFrançois Tigeot * copy of this software and associated documentation files (the "Software"), 6ba55f2f5SFrançois Tigeot * to deal in the Software without restriction, including without limitation 7ba55f2f5SFrançois Tigeot * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8ba55f2f5SFrançois Tigeot * and/or sell copies of the Software, and to permit persons to whom the 9ba55f2f5SFrançois Tigeot * Software is furnished to do so, subject to the following conditions: 10ba55f2f5SFrançois Tigeot * 11ba55f2f5SFrançois Tigeot * The above copyright notice and this permission notice (including the next 12ba55f2f5SFrançois Tigeot * paragraph) shall be included in all copies or substantial portions of the 13ba55f2f5SFrançois Tigeot * Software. 14ba55f2f5SFrançois Tigeot * 15ba55f2f5SFrançois Tigeot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16ba55f2f5SFrançois Tigeot * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17ba55f2f5SFrançois Tigeot * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18ba55f2f5SFrançois Tigeot * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19ba55f2f5SFrançois Tigeot * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20ba55f2f5SFrançois Tigeot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21ba55f2f5SFrançois Tigeot * DEALINGS IN THE SOFTWARE. 22ba55f2f5SFrançois Tigeot */ 23ba55f2f5SFrançois Tigeot 24ba55f2f5SFrançois Tigeot #ifndef _INTEL_RENDERSTATE_H 25ba55f2f5SFrançois Tigeot #define _INTEL_RENDERSTATE_H 26ba55f2f5SFrançois Tigeot 27*71f41f3eSFrançois Tigeot #include <linux/types.h> 28ba55f2f5SFrançois Tigeot 29*71f41f3eSFrançois Tigeot struct intel_renderstate_rodata { 30*71f41f3eSFrançois Tigeot const u32 *reloc; 31*71f41f3eSFrançois Tigeot const u32 *batch; 32*71f41f3eSFrançois Tigeot const u32 batch_items; 33*71f41f3eSFrançois Tigeot }; 34ba55f2f5SFrançois Tigeot 35ba55f2f5SFrançois Tigeot #define RO_RENDERSTATE(_g) \ 36ba55f2f5SFrançois Tigeot const struct intel_renderstate_rodata gen ## _g ## _null_state = { \ 37ba55f2f5SFrançois Tigeot .reloc = gen ## _g ## _null_state_relocs, \ 38ba55f2f5SFrançois Tigeot .batch = gen ## _g ## _null_state_batch, \ 39ba55f2f5SFrançois Tigeot .batch_items = sizeof(gen ## _g ## _null_state_batch)/4, \ 40ba55f2f5SFrançois Tigeot } 41ba55f2f5SFrançois Tigeot 42*71f41f3eSFrançois Tigeot extern const struct intel_renderstate_rodata gen6_null_state; 43*71f41f3eSFrançois Tigeot extern const struct intel_renderstate_rodata gen7_null_state; 44*71f41f3eSFrançois Tigeot extern const struct intel_renderstate_rodata gen8_null_state; 45*71f41f3eSFrançois Tigeot extern const struct intel_renderstate_rodata gen9_null_state; 46*71f41f3eSFrançois Tigeot 47ba55f2f5SFrançois Tigeot #endif /* INTEL_RENDERSTATE_H */ 48